forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request numpy#13163 from mattip/randomgen
ENH: randomgen This merges randomgen into numpy, which was originally developed at https://github.com/bashtage/randomgen and provides a new and improved API for random number generation with much new and improved functionality.
- Loading branch information
Showing
169 changed files
with
48,297 additions
and
4,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Double SIMD Mersenne Twister (dSFMT) | ||
------------------------------------ | ||
|
||
.. module:: numpy.random.dsfmt | ||
|
||
.. currentmodule:: numpy.random.dsfmt | ||
|
||
|
||
.. autoclass:: DSFMT | ||
:exclude-members: | ||
|
||
Seeding and State | ||
================= | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~DSFMT.seed | ||
~DSFMT.state | ||
|
||
Parallel generation | ||
=================== | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~DSFMT.jumped | ||
|
||
Extending | ||
========= | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~DSFMT.cffi | ||
~DSFMT.ctypes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. _bit_generator: | ||
|
||
Bit Generators | ||
-------------- | ||
|
||
.. currentmodule:: numpy.random | ||
|
||
The random values produced by :class:`~Generator` | ||
orignate in a BitGenerator. The BitGenerators do not directly provide | ||
random numbers and only contains methods used for seeding, getting or | ||
setting the state, jumping or advancing the state, and for accessing | ||
low-level wrappers for consumption by code that can efficiently | ||
access the functions provided, e.g., `numba <https://numba.pydata.org>`_. | ||
|
||
Stable RNGs | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
DSFMT <dsfmt> | ||
MT19937 <mt19937> | ||
PCG32 <pcg32> | ||
PCG64 <pcg64> | ||
Philox <philox> | ||
ThreeFry <threefry> | ||
Xoshiro256** <xoshiro256> | ||
Xoshiro512** <xoshiro512> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Mersenne Twister (MT19937) | ||
-------------------------- | ||
|
||
.. module:: numpy.random.mt19937 | ||
|
||
.. currentmodule:: numpy.random.mt19937 | ||
|
||
.. autoclass:: MT19937 | ||
:exclude-members: | ||
|
||
Seeding and State | ||
================= | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~MT19937.seed | ||
~MT19937.state | ||
|
||
Parallel generation | ||
=================== | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~MT19937.jumped | ||
|
||
Extending | ||
========= | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~MT19937.cffi | ||
~MT19937.ctypes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Parallel Congruent Generator (32-bit, PCG32) | ||
-------------------------------------------- | ||
|
||
.. module:: numpy.random.pcg32 | ||
|
||
.. currentmodule:: numpy.random.pcg32 | ||
|
||
.. autoclass:: PCG32 | ||
:exclude-members: | ||
|
||
Seeding and State | ||
================= | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~PCG32.seed | ||
~PCG32.state | ||
|
||
Parallel generation | ||
=================== | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~PCG32.advance | ||
~PCG32.jumped | ||
|
||
Extending | ||
========= | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
~PCG32.cffi | ||
~PCG32.ctypes |
Oops, something went wrong.