| 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/lib/tests/__pycache__/ |
Upload File : |
�
�g� � �8 � d dl Zd dlmZ d dlmZ G d� d� Zy)� N)�array_utils)�assert_equalc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�TestByteBoundsc �� � t j d� j dd� }t j |� \ }}t ||z
|j |j z � y �N� � � )�np�arange�reshaper �byte_boundsr �size�itemsize)�self�a�low�highs �BC:\Python312\Lib\site-packages\numpy/lib/tests/test_array_utils.py�test_byte_boundszTestByteBounds.test_byte_bounds sM � �
�I�I�b�M�!�!�!�Q�'���+�+�A�.� ��T��T�C�Z����!�*�*�!4�5� c �� � t j d� j dd� }|j }t j
|� \ }}t
||z
|j |j z � y r � r r
r �Tr r r r r �r r �br r s r �"test_unusual_order_positive_stridez1TestByteBounds.test_unusual_order_positive_stride sT � ��I�I�b�M�!�!�!�Q�'��
�C�C���+�+�A�.� ��T��T�C�Z����!�*�*�!4�5r c �� � t j d� j dd� }|j d d d� }t j
|� \ }}t
||z
|j |j z � y )Nr r
r ���r r s r �"test_unusual_order_negative_stridez1TestByteBounds.test_unusual_order_negative_stride s\ � ��I�I�b�M�!�!�!�Q�'��
�C�C��"��I���+�+�A�.� ��T��T�C�Z����!�*�*�!4�5r c �� � t j d� }|d d d� }t j |� \ }}t ||z
|j
dz |j z |j z
� y )Nr � )r r
r r r r r r s r �test_stridedzTestByteBounds.test_strided sZ � ��I�I�b�M��
�c��c�F���+�+�A�.� ��T� �T�C�Z����!��a�j�j�!8�1�:�:�!E�Fr N)�__name__�
__module__�__qualname__r r r! r$ � r r r r s � �6�6�6�Gr r )�numpyr � numpy.libr �
numpy.testingr r r( r r �<module>r, s �� � !� &�G� Gr