%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/random/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/random/tests/__pycache__/test_seed_sequence.cpython-39.pyc

a

z[yc��@s8ddlZddlmZmZddlmZdd�Zdd�ZdS)�N)�assert_array_equal�assert_array_compare)�SeedSequencec	Cs*gd�gd�gd�gd�gd�gd�gd�gd�gd	�gd
�g
}gd�gd�gd
�gd�gd�gd�gd�gd�gd�gd�g
}ddgddgddgddgddgdd gd!d"gd#d$gd%d&gd'd(gg
}t|||�D]X\}}}tj|tjd)�}t|�}|�t|��}t||�|jt|�tjd)�}t||�q�d*S)+z� Check that SeedSequence generates data the same as the C++ reference.

    https://gist.github.com/imneme/540829265469e673d045
    )l�>[=i�ʭi��
ixV4)lAM5l�l�pi1 cl�^<1)i��	lO!�piF�6ii��M)i(��lNw�Ui]e+ivp2p)i�v(oi��fl�F�Nit��i)l�ml�-�
i�� i��5)i^w�Cl�x{l�9lI6�;)i�|�Il-Keri�|Li��r)lgT<>irT�"lo�jl�P�J)l�b�Il�x�Wls-_`id�f3)l�M�Ri�b"l�n,l�=�	)l�ul�8iK�jQl�b<)lS�(lE{|iH5lDl!bJ<)i�٦Sl� ,i�k�Li�&W)i��@l;:i>f!l�'4)lllD�i��2l�z9e)l�4lKp�`l�a$i^
)i��)9l't�Mi��npi�Rp)l�2DZiA�l�DIi~G)i55�l�\|ih
�l^rl�M�R�l�n,swM'l�u2R,`
lKZ�"R�q	lS�(i�qlH5��+q
l�YM'�0
l�k�=�Rl�|�D�l>�B�W�P
ll]_l�e�k�l�4.A�l�a${E�Pl�`Sr�P�7l�K�`EJ�+l�2DZe8Nl�DIx;Bl55T#LsNplh
�x!��ZdtypeN)	�zip�np�array�uint32r�generate_state�lenrZuint64)	ZinputsZoutputsZ	outputs64ZseedZexpectedZ
expected64�ss�stateZstate64�r�K/usr/lib64/python3.9/site-packages/numpy/random/tests/test_seed_sequence.py�test_reference_datasP�
�
�
rcCsrtd�}td�}ttj|�d�|�d��tjgd�tjd�}ttd��d�|�ttjtddd��d�|�dS)	zD Ensure that the implicit zero-padding does not cause problems.
    �*l��)l�
�lm.<>i���yl�s�*r)r)Z	spawn_keyN)rrrZ	not_equalr
rr	r)Zss0Zss1Z
expected42rrr�test_zero_padding9s �
��r)	ZnumpyrZ
numpy.testingrrZnumpy.randomrrrrrrr�<module>s2

Zerion Mini Shell 1.0