Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
numpy
/
random
/
File Content:
_pickle.py
from .mtrand import RandomState from ._philox import Philox from ._pcg64 import PCG64, PCG64DXSM from ._sfc64 import SFC64 from ._generator import Generator from ._mt19937 import MT19937 BitGenerators = {'MT19937': MT19937, 'PCG64': PCG64, 'PCG64DXSM': PCG64DXSM, 'Philox': Philox, 'SFC64': SFC64, } def __bit_generator_ctor(bit_generator_name='MT19937'): """ Pickling helper function that returns a bit generator object Parameters ---------- bit_generator_name : str String containing the name of the BitGenerator Returns ------- bit_generator : BitGenerator BitGenerator instance """ if bit_generator_name in BitGenerators: bit_generator = BitGenerators[bit_generator_name] else: raise ValueError(str(bit_generator_name) + ' is not a known ' 'BitGenerator module.') return bit_generator() def __generator_ctor(bit_generator_name="MT19937", bit_generator_ctor=__bit_generator_ctor): """ Pickling helper function that returns a Generator object Parameters ---------- bit_generator_name : str String containing the core BitGenerator's name bit_generator_ctor : callable, optional Callable function that takes bit_generator_name as its only argument and returns an instantized bit generator. Returns ------- rg : Generator Generator using the named core BitGenerator """ return Generator(bit_generator_ctor(bit_generator_name)) def __randomstate_ctor(bit_generator_name="MT19937", bit_generator_ctor=__bit_generator_ctor): """ Pickling helper function that returns a legacy RandomState-like object Parameters ---------- bit_generator_name : str String containing the core BitGenerator's name bit_generator_ctor : callable, optional Callable function that takes bit_generator_name as its only argument and returns an instantized bit generator. Returns ------- rs : RandomState Legacy RandomState using the named core BitGenerator """ return RandomState(bit_generator_ctor(bit_generator_name))
Submit
FILE
FOLDER
Name
Size
Permission
Action
__pycache__
---
0755
_examples
---
0755
lib
---
0755
tests
---
0755
__init__.pxd
431 bytes
0644
__init__.py
7506 bytes
0644
__init__.pyi
2143 bytes
0644
_bounded_integers.cpython-311-x86_64-linux-gnu.so
410480 bytes
0755
_bounded_integers.pxd
1669 bytes
0644
_common.cpython-311-x86_64-linux-gnu.so
286816 bytes
0755
_common.pxd
4939 bytes
0644
_generator.cpython-311-x86_64-linux-gnu.so
1008152 bytes
0755
_generator.pyi
22442 bytes
0644
_mt19937.cpython-311-x86_64-linux-gnu.so
115672 bytes
0755
_mt19937.pyi
724 bytes
0644
_pcg64.cpython-311-x86_64-linux-gnu.so
118144 bytes
0755
_pcg64.pyi
1091 bytes
0644
_philox.cpython-311-x86_64-linux-gnu.so
101416 bytes
0755
_philox.pyi
978 bytes
0644
_pickle.py
2318 bytes
0644
_sfc64.cpython-311-x86_64-linux-gnu.so
67384 bytes
0755
_sfc64.pyi
709 bytes
0644
bit_generator.cpython-311-x86_64-linux-gnu.so
232704 bytes
0755
bit_generator.pxd
1007 bytes
0644
bit_generator.pyi
3510 bytes
0644
c_distributions.pxd
6344 bytes
0644
mtrand.cpython-311-x86_64-linux-gnu.so
798376 bytes
0755
mtrand.pyi
19728 bytes
0644
setup.py
6688 bytes
0644
N4ST4R_ID | Naxtarrr