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

Conda package using conda-forge

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:

  conda install -c https://software.repos.intel.com/python/conda mkl_random

or from conda forge channel:

   conda install -c conda-forge mkl_random

To install mkl_random Pypi package please use following command:

   python -m pip install -i https://software.repos.intel.com/python/pypi --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 Intel Pypi Cloud:

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

Where <numpy_version> should be the latest version from https://software.repos.intel.com/python/conda/


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.10-0-cp312-cp312-win_amd64.whl (327.7 kB view details)

Uploaded CPython 3.12Windows x86-64

mkl_random-1.2.10-0-cp312-cp312-manylinux_2_28_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mkl_random-1.2.10-0-cp311-cp311-win_amd64.whl (344.4 kB view details)

Uploaded CPython 3.11Windows x86-64

mkl_random-1.2.10-0-cp311-cp311-manylinux_2_28_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mkl_random-1.2.10-0-cp310-cp310-win_amd64.whl (341.9 kB view details)

Uploaded CPython 3.10Windows x86-64

mkl_random-1.2.10-0-cp310-cp310-manylinux_2_28_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

mkl_random-1.2.10-0-cp39-cp39-win_amd64.whl (342.5 kB view details)

Uploaded CPython 3.9Windows x86-64

mkl_random-1.2.10-0-cp39-cp39-manylinux_2_28_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

File details

Details for the file mkl_random-1.2.10-0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a345f4e4566fb947b374dfbd4444aca9012d39d053387a26e196cd9e372f1181
MD5 5eeea67d41b003000c23906dda395268
BLAKE2b-256 6eaa28474eb259eaf76d0f55959aded4a584d9378c2d7d7cba23d4f4e47d620d

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e4d38c0b0677d524900114efe4b9c1e5e2594f5207cb22e5423deae62456247
MD5 dfe6aa1faff894ce1009b87d34f151e0
BLAKE2b-256 d96766af8dee4fb0d0d7098904f12813761cc060f6601aaed7bc817441f9d2b0

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 207dde6daae09585dc8d508c983083b2dfdd8b77fdbe021f67bdec588cc3290c
MD5 b3470dfbcb7069581edc375116300cd1
BLAKE2b-256 caa8ce7413c870b553fefb01e55f21f24c8c26e170215569f121d52812f539e5

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b955d12e2bd70681cff13e50302e1c9f149805800aa4b1946a68642b29a04493
MD5 c2983bd2f084d1428f0b7f03e376f966
BLAKE2b-256 474b8df4dd26d234ce540703f6a39365bc61cf413f78a08cdaa15c284b0cea9b

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f6dffc71902b710dd4001b1a9abafc9fac2878e3564173f0fbde7ccdc02fbe82
MD5 405e5d80432f8635c53fc809c68ddc2a
BLAKE2b-256 cd6902d7d1a5442eed7515d771053cbde6b883cb8b4707f3d950c55459b9e9e6

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 087579536bb0e9920247fa3ccbb609b22c57788fe549a321a8382d6185553bb3
MD5 05c5e0e327fa46a79e8a9f657cd95396
BLAKE2b-256 614c251941456d7bb7830ef81b45caa027fa983216d731f6320e71b5e9f853a9

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5fb13b9a0946e198b28da33555b0f99a2072f5a13c7826204706d407b715623
MD5 bec268e16cf1bcf6b2394bb73cb4cbdd
BLAKE2b-256 977bf233f5375beb768cd5a806e98696b2bc5c2f0db93a2d1d1850a7d89c16e9

See more details on using hashes here.

File details

Details for the file mkl_random-1.2.10-0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.2.10-0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2189304151d32112af05cade9584307296c8bd2c93c800aefd188c56016a2ac5
MD5 f49c49fe767ba574990145e813522562
BLAKE2b-256 7475d273753de607afbcfe3555f57398f278b2fa16f81123385fbdb086a427de

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