Skip to main content

This module is a thin Python wrapper over C library dcmt, created by Makoto Matsumoto and Takuji Nishimura, authors of Mersenne twister RNG algorithm. The original library provides functions for creating multiple independent RNGs (which can be used, for example, in parallel Monte-Carlo simulations).

The package contains intact dcmt sources (except for example folder) and exports some functions and structures from its API. For licensing on original library and other information please see the link above, or src/dcmt/README file and sources.

The version of the module corresponds to the version of original library, with the addition of the build number. For example, the wrapper on top of dcmt 0.6.1 may have version like 0.6.1-10. Module documentation can be found here

Changelog

0.6.1-5 (in development)

  • Fix issues with setuptools/distutils (one of them does not support Cython, other does not support Sphinx)

0.6.1-4 (in development)

  • Fixed bug when mt_range() return ‘common’ parameters dict with non-common parameters included;

  • Fixed bug when DcmtRandomState.rand() returned array instead of Python float;

  • Added raw integer randoms generation to DcmtRandomState;

  • Added ‘inplace’ function to fill provided numpy array with randoms

0.6.1-3

  • Using slightly optimized random number generation taken from numpy 1.5.1;

  • Module is rewritten using Cython;

  • Exporting analogues of Python standard random.Random and numpy’s numpy.random.mtrand.RandomState;

  • Renamed create_mts to mt_range, which now returns dictionary and numpy array instead of ctypes structures;

0.6.1-2

  • Shortened function names: create_mts(), init_mt()

  • Removed get_random() and added rand(), which returns numpy array

  • Added create_mts_stripped(), currently as a ‘half-documented’ feature

0.6.1-1

  • Three basic functions: create_generators(), init_generator() and get_random() (returns integer)

Metadata

Release files for dcmt 0.6.1-4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcmt 0.6.1-4
File Size Uploaded
dcmt-0.6.1-4.tar.gz 100.7 kB Details

Release files / dcmt-0.6.1-4.tar.gz

Download URL dcmt-0.6.1-4.tar.gz
Size 100.7 kB
Tags Source
SHA-256 checksum
How to use checksums
242bcb60b286eaaf8210db5b45a4709d94a9dc9cfdd31af49d08c163af987512
BLAKE2b-256 checksum
How to use checksums
c3f53407172564457bbf38bcc0cbe5ecd50302f45d97acc600f1a018e3c2d80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6.1-4 This release

1 release file

0.6.1-2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page