| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/random/__pycache__/ |
Upload File : |
�
�g � � � d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m
Z
d dlmZ d dl
mZ eeeee
d�Zdd
eee z fd�Zd efd�Zd efd
�Zy)� )�BitGenerator)�RandomState)�Philox)�PCG64� PCG64DXSM)�SFC64)� Generator)�MT19937)r
r r r r r
�
bit_generatorc � � t | t � r | } |� S | t v rt | } |� S t t | � dz � �)a(
Pickling helper function that returns a bit generator object
Parameters
----------
bit_generator : type[BitGenerator] or str
BitGenerator class or string containing the name of the BitGenerator
Returns
-------
BitGenerator
BitGenerator instance
z$ is not a known BitGenerator module.)�
isinstance�type�
BitGenerators�
ValueError�str)r �
bit_gen_classs �6C:\Python312\Lib\site-packages\numpy/random/_pickle.py�__bit_generator_ctorr sX � � �-��&�%�
� �?��
�-� '�%�m�4�
� �?�� ��
��!G�G�
�
� c �Z � t | t � rt | � S t || � � S )a�
Pickling helper function that returns a Generator object
Parameters
----------
bit_generator_name : str or BitGenerator
String containing the core BitGenerator's name or a
BitGenerator instance
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
)r
r r ��bit_generator_name�bit_generator_ctors r �__generator_ctorr , s- � �&