Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/numpy/random/tests/__pycache__/test_seed_sequence.cpython-37.pyc
Назад
B �5�g� � @ s8 d dl Zd dlmZmZ d dlmZ dd� Zdd� ZdS )� N)�assert_array_equal�assert_array_compare)�SeedSequencec C s� ddddgddddgd d ddgd dddgddddgddddgddddgdddd gd!d"d#d$gd%d&d'd(gg } d)d*d+d,gd-d.d/d0gd1d2d3d4gd5d6d7d8gd9d:d;d<gd=d>d?d@gdAdBdCdDgdEdFdGdHgdIdJdKdLgdMdNdOdPgg }dQdRgdSdTgdUdVgdWdXgdYdZgd[d\gd]d^gd_d`gdadbgdcddgg }xjt | ||�D ]Z\}}}tj|tjde�}t|�}|�t|��}t||� |jt|�tjde�}t||� �qW dfS )gz� Check that SeedSequence generates data the same as the C++ reference. https://gist.github.com/imneme/540829265469e673d045 l �>[= i�ʭi�� ixV4l AM5 l �l�p i1 cl �^<1 i�� l O!�p iF�6ii��Mi(��l Nw�U i]e+ivp2pi�v(oi��fl �F�N it��il �m l �-� i�� i��5i^w�Cl �x{ l �9 l I6�; i�|�Il -Ker i�|Li��rl gT<> irT�"l o�j l �P�J l �b�I l �x�W l s-_` id�f3l �M�R i�b"l � n, l �=� l �u l �8 iK�jQl �b< l S�( l E{| iH5lDl !bJ< i�٦Sl � , i�k�Li�&Wi��@l ;: i>f!l �'4 l l l D� i��2l �z9e l �4 l Kp�` l �a$ i^ i��)9l 't�M i��npi�Rpl �2DZ iA�l �DI i~Gi55�l �\| ih � l ^r l �M�R� l � n,swM' l �u2R,` l KZ�"R�q l S�(i�q l H5��+q l �YM'�0 l �k�=�R l �|�D� l >�B�W�P l l]_ l �e�k� l �4.A� l �a${E�Pl �`Sr�P�7 l �K�`EJ�+ l �2DZe8N l �DI x;Bl 55T#LsNp l h �x!� )�dtypeN) �zip�np�array�uint32r �generate_state�lenr Zuint64) �inputs�outputsZ outputs64�seed�expectedZ expected64�ss�stateZstate64� r �[/home/digitalm-up/venv/lib/python3.7/site-packages/numpy/random/tests/test_seed_sequence.py�test_reference_data sJ r c C sv t d�} t d�}ttj| �d�|�d�� tjddddgtjd�}tt d��d�|� ttjt dd d ��d�|� dS )zD Ensure that the implicit zero-padding does not cause problems. �* l � � l � � l m.<> i���yl �s�* )r )r )Z spawn_keyN)r r r � not_equalr r r r )Zss0Zss1Z expected42r r r �test_zero_padding9 s r ) �numpyr Z numpy.testingr r Znumpy.randomr r r r r r r �<module> s 2
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка