관리-도구
편집 파일: test_seed_sequence.cpython-311.pyc
� �܋f� � �6 � d dl Zd dlmZmZ d dlmZ d� Zd� ZdS )� N)�assert_array_equal�assert_array_compare)�SeedSequencec �4 � g d�g d�g d�g d�g d�g d�g d�g d�g d �g d �g } g d�g d�g d �g d�g d�g d�g d�g d�g d�g d�g }ddgddgddgddgddgdd gd!d"gd#d$gd%d&gd'd(gg }t | ||� � D ]�\ }}}t j |t j �)� � }t |� � }|� t |� � � � }t ||� � |� t |� � t j �)� � }t ||� � ��d*S )+z� Check that SeedSequence generates data the same as the C++ reference. https://gist.github.com/imneme/540829265469e673d045 )l �>[= i�ʭi�� ixV4)l AM5 l �l�p i1 cl �^<1 )i�� l O!�p iF�6ii��M)i(��l Nw�U i]e+ivp2p)i�v(oi��fl �F�N it��i)l �m l �-� i�� i��5)i^w�Cl �x{ l �9 l I6�; )i�|�Il -Ker i�|Li��r)l gT<> irT�"l o�j l �P�J )l �b�I l �x�W l s-_` id�f3)l �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�&W)i��@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�Rp)l �2DZ iA�l �DI i~G)i55�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 �uint64) �inputs�outputs� outputs64�seed�expected� expected64�ss�state�state64s �x/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/random/tests/test_seed_sequence.py�test_reference_datar s� � � 6�5�5�8�8�8�7�7�7�6�6�6�8�8�8�6�6�6�8�8�8�8�8�8�7�7�7�7�7�7��F� 8�7�7�8�8�8�8�8�8�7�7�7�7�7�7�7�7�7�7�7�7�6�6�6�6�6�6�5�5�5��G� �1�2� �3�4� �3�4� �2�3� �2�3� �3�4� �1�2� �2�3� �0�1� �3�4��I� '*�&�'�9�&E�&E� 0� 0�"��h� ��8�H�B�I�6�6�6�� �$� � ���!�!�#�h�-�-�0�0���5�(�+�+�+��#�#�C� �O�O�2�9�#�E�E���7�J�/�/�/�/� 0� 0� c �� � t d� � } t d� � }t t j | � d� � |� d� � � � t j g d�t j �� � }t t d� � � d� � |� � t t j t dd�� � � d� � |� � dS ) zD Ensure that the implicit zero-padding does not cause problems. �* l � � )l � � l m.<> i���yl �s�* r )r )� spawn_keyN)r r r � not_equalr r r r )�ss0�ss1� expected42s r �test_zero_paddingr$ 9 s� � � �r� � �C� �x� � �C�� �����1������1���� � � ��J�J�J� "� �+� +� +�J��|�B�'�'�6�6�q�9�9�:�F�F�F� � ���R�4�(�(�(�7�7��:�:��� � � � r ) �numpyr � numpy.testingr r �numpy.randomr r r$ � r r �<module>r) sd �� � � � � B� B� B� B� B� B� B� B� %� %� %� %� %� %�/0� /0� /0�d� � � � r