Dynamical creation of Mersenne twisters
Project description
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-4 (in development)
Fix issues with setuptools/distutils (one of them does not support Cython, other does not support Sphinx)
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dcmt-0.6.1-3.tar.gz
.
File metadata
- Download URL: dcmt-0.6.1-3.tar.gz
- Upload date:
- Size: 98.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21d7519143926250bc6a33b68a162323a24c4bbefa2f03a99cc826a0e28d4b5 |
|
MD5 | f3b32c965738101c5ac005de4091fed4 |
|
BLAKE2b-256 | a67af1d3a4ccfcd3b548857b2325dc751582da3c3e0fb120b1fa9c9b2b6c77dd |