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® oneAPI Math Kernel Library (OneMKL) Random Number Generation functionality

Conda package using conda-forge

mkl_random started as a part of Intel® Distribution for Python optimizations to 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 using:

  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® OneMKL, 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'

To build mkl_random from sources on Linux:

  • install a recent version of MKL, if necessary;
  • execute source /path_to_oneapi/mkl/latest/env/vars.sh;
  • execute python -m pip install .

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.4.1-0-cp314-cp314-win_amd64.whl (354.9 kB view details)

Uploaded CPython 3.14Windows x86-64

mkl_random-1.4.1-0-cp314-cp314-manylinux_2_28_x86_64.whl (450.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

mkl_random-1.4.1-0-cp313-cp313-win_amd64.whl (356.0 kB view details)

Uploaded CPython 3.13Windows x86-64

mkl_random-1.4.1-0-cp313-cp313-manylinux_2_28_x86_64.whl (448.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

mkl_random-1.4.1-0-cp312-cp312-win_amd64.whl (354.6 kB view details)

Uploaded CPython 3.12Windows x86-64

mkl_random-1.4.1-0-cp312-cp312-manylinux_2_28_x86_64.whl (448.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mkl_random-1.4.1-0-cp311-cp311-win_amd64.whl (374.4 kB view details)

Uploaded CPython 3.11Windows x86-64

mkl_random-1.4.1-0-cp311-cp311-manylinux_2_28_x86_64.whl (454.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mkl_random-1.4.1-0-cp310-cp310-win_amd64.whl (374.0 kB view details)

Uploaded CPython 3.10Windows x86-64

mkl_random-1.4.1-0-cp310-cp310-manylinux_2_28_x86_64.whl (456.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file mkl_random-1.4.1-0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ea1d757892178f7d3b054736df642cd5c4c346bc8f7561b169aa0563dbc7b5c8
MD5 bdac212ab705cb6af2d3c798fe230205
BLAKE2b-256 102c11f89a58368b5e3430fe73c7105c4c574880d8da1a2a40f2fe63073ab4bb

See more details on using hashes here.

File details

Details for the file mkl_random-1.4.1-0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6ee4d964abdc6fa00b54837b6eecf43a1d57cd2d0db8c5571d2bb9dabc2837b7
MD5 877297a9243a2fa0fac00f7501aa6d73
BLAKE2b-256 5c84dc8014ab5f12a80a0a25696390b02375b84f2d63cac62de4673e2cea92db

See more details on using hashes here.

File details

Details for the file mkl_random-1.4.1-0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 556414465f22f7288a3345f791b0073c3402f805739ee97d9310b09d97863d73
MD5 60ef22eddb5cd341d891aa5e3b46fdd7
BLAKE2b-256 d36b0d6b6281ee01879658454150b0ff17c8b69e4bf714408baf997a9de46f48

See more details on using hashes here.

File details

Details for the file mkl_random-1.4.1-0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e5c373ec39b8ca2d23b5cf2208f77d4e077e970955fed688129c2caff274f177
MD5 5b24b3cb40df17856e27b8fd7a483ff5
BLAKE2b-256 36ec6d09cc820555c4a1f9a776dbf8044aa6ef7eb8ac22990a4af472abcd4d24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a26aac7e34e811139d8a08020a87dd780083dfef637e7f83da6d5125b49f25d9
MD5 23c7dd255aec58684cb433dcf758f354
BLAKE2b-256 06676ee74f75868c0117fc0f2cb538cabc9ae7d1c6c50281908cff172b40349b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7ea93df8e13325e5383c51bf1985a5dce7014b52f8e8cc19982e18153fb536bc
MD5 716aaa45b895d1e0d6a75af3f18e0f4f
BLAKE2b-256 28e43b4574197b8ee44b97954147d4055270cc345429724a2d6da4e11bb195cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 19e7cc7b18df33a4959d4bbc9a4cc017a42ce3d56b4580073609bbc4c4d4d258
MD5 5c92126dc44a2d539a1c03f4cb628e0b
BLAKE2b-256 a0eb2a332022ea45c2d6f805461e08a5c1b1ce9b2bcd8de713f30555891f8c36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7d22175107aca580ebe509cfd40fe4441ae1a77cf0ad9738502eb4e4339527ce
MD5 8b40128f28c8188c784bb9c2bb1b0210
BLAKE2b-256 2061996f5fafc49ad75ba74f956950cb1879e3626bd11e0cf74f8df3c21f9a18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1efbff7a0773faa6281d556c26124b408b6ff7aec8ddb9f1ad4a6f13485703c4
MD5 515ea268c6ec0d3764008b9fa08e43ac
BLAKE2b-256 02b2bfacfd008f31df8f87bcd8e6f60ce3614e144efea3615ab9b8ddec4c4c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkl_random-1.4.1-0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92af9ea3e1c610a710fdba84313cb53d829ac56944058e637e39912252af686b
MD5 cc51d1ba88ac7cfea528374dedb242b3
BLAKE2b-256 55410a6498ca1dc8c33b47e15c76720eb9a382d352b9424fc93691930257eed0

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