Skip to main content

NumPy-based Python interface to Intel (R) MKL Random Number Generation functionality

Project description

mkl_random -- a NumPy-based Python interface to Intel (R) MKL Random Number Generation functionality

Build Status

mkl_random has started as Intel (R) Distribution for Python optimizations for NumPy.

Per NumPy's community suggestions, voiced in https://github.com/numpy/numpy/pull/8209, it is being released as a stand-alone package.

Prebuilt mkl_random can be installed into conda environment from Intel's channel on Anaconda cloud:

  conda install -c intel mkl_random

To install mkl_random Pypi package please use following command:

   python -m pip install --i https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple mkl_random

If command above installs NumPy package from the Pypi, please use following command to install Intel optimized NumPy wheel package from Anaconda Cloud:

   python -m pip install --i https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple mkl_random numpy==<numpy_version>

Where <numpy_version> should be the latest version from https://anaconda.org/intel/numpy


mkl_random is not fixed-seed backward compatible drop-in replacement for numpy.random, meaning that it implements sampling from the same distributions as numpy.random.

For distributions directly supported in Intel (R) Math Kernel Library (MKL), method keyword is supported:

   mkl_random.standard_normal(size=(10**5, 10**3), method='BoxMuller')

Additionally, mkl_random exposes different basic random number generation algorithms available in MKL. For example to use SFMT19937 use

   mkl_random.RandomState(77777, brng='SFMT19937')

For generator families, such that MT2203 and Wichmann-Hill, a particular member of the family can be chosen by specifying brng=('WH', 3), etc.

The list of supported by mkl_random.RandomState constructor brng keywords is as follows:

  • 'MT19937'
  • 'SFMT19937'
  • 'WH' or ('WH', id)
  • 'MT2203' or ('MT2203', id)
  • 'MCG31'
  • 'R250'
  • 'MRG32K3A'
  • 'MCG59'
  • 'PHILOX4X32X10'
  • 'NONDETERM'
  • 'ARS5'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mkl_random-1.2.4-92-cp311-cp311-win_amd64.whl (248.4 kB view details)

Uploaded CPython 3.11Windows x86-64

mkl_random-1.2.4-92-cp311-cp311-manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11

mkl_random-1.2.4-92-cp310-cp310-win_amd64.whl (249.2 kB view details)

Uploaded CPython 3.10Windows x86-64

mkl_random-1.2.4-92-cp310-cp310-manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.10

mkl_random-1.2.4-92-cp39-cp39-win_amd64.whl (261.7 kB view details)

Uploaded CPython 3.9Windows x86-64

mkl_random-1.2.4-92-cp39-cp39-manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.9

mkl_random-1.2.4-90-cp310-cp310-win_amd64.whl (249.2 kB view details)

Uploaded CPython 3.10Windows x86-64

mkl_random-1.2.4-90-cp310-cp310-manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10

mkl_random-1.2.4-90-cp39-cp39-win_amd64.whl (261.7 kB view details)

Uploaded CPython 3.9Windows x86-64

mkl_random-1.2.4-90-cp39-cp39-manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9

File details

Details for the file mkl_random-1.2.4-92-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 032032336cc750f7126c49384f359cd6ea2eee3c9865e0a6e4e5692d9ecbf370
MD5 37aac7701c6c454f52b88f24d79dfaf1
BLAKE2b-256 5265201f9feb6a5dd98cc5940a65ed1b06783f19efb928d301a315dd75802b83

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-92-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 262151b93ff924e0b970101e1b22578f369dbc55ce393a4971f041635c417ce3
MD5 82a01174c0435d512f8495f607a07e84
BLAKE2b-256 b5782da909eb0fa3d4973d5d47343afe726dd802314b6aef69ab41f6610b3638

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-92-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1c254bb705246141371c40a3fec7247d755184b3949743ce78c0385c5ce69dba
MD5 c30c482a25641b43fa10b950b4d4c8d3
BLAKE2b-256 79dbf3787f82b2662b86469adeb7f80585b104cbe36fbd01f9fa6d93c3c391dd

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-92-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62802d275f7889a642fdeb28278985896590a7e9f878d029b4d331e529d5087a
MD5 4da413ca892fb6c16b824d2863b6a1ff
BLAKE2b-256 da72417f8e4807f0c7e83d708b27a152354132c0c967e469a72c1afc2207864a

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-92-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d8f6a6763eff6db651fe195df4e53634041e3fddf40254be9c7363c9e2f9e990
MD5 9793855c1871ee95bda9206dcbd73a94
BLAKE2b-256 caf17601dd38720393069dc669ce301e552baa2023aaa1b9920de09b88f54417

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-92-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-92-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cedbd4c6ec1a7c8198603966bccc69e168e32153eb9728534f2560b01d7a2fd6
MD5 3221eae52401c7d1f1084da289fd871e
BLAKE2b-256 cc698f2266105bde33977d297abbe876a55212b2d2834ff396ee8bbe00eebcaf

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-90-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-90-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 314b4cfa40f5c1901a0672c38a27a93f327088e649919c31d87243eb07577cd8
MD5 0283b2867aa960fb9025468dc8a4c396
BLAKE2b-256 dc0de9c4e5f857f776fd7c59e1256679d3094a05db39eac2c73d404aefbc3729

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-90-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-90-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78cada0e7b04511ba3d25f02d435953f8a8491f7dbd240396bc7a3cf42ceb766
MD5 f9f2b0083219b5924c23e60bebc25213
BLAKE2b-256 e73fc6d6feb8442356bd42469fff0e1debe57758a385774b5ee6a2af2c2f4b85

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-90-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-90-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2007f5d6e9d0bedb52f66602a87cf91841a9e39b1f50f32b9d5495c6ddd0be0
MD5 2c82becb5c072f478739d825d3c0b334
BLAKE2b-256 4f3dd4b073105d880bef92c49b29b6771e9b9063a205f0cb59f468dbbfc53e03

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.4-90-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.4-90-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55830cb95a41f280bbdd59b9a91527b60a7389fc4dca71c9e75b2bbd34925206
MD5 ba447a3ff282f141fc0647a9bd3c1293
BLAKE2b-256 2ced6a5d229d306345c93a12b13d8ab986b4fa1490d75ed61e2a60b5f7806482

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page