HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/numpy/lib/tests/__pycache__/test_arrayterator.cpython-310.pyc
o

6��a�@sPddlmZddlmZddlZddlmZddlm	Z	ddl
mZdd�ZdS)	�)�mul)�reduceN��randint)�Arrayterator)�assert_c
CsBtj�t�d��td�d}tdd�t|�D��}tt|�}t�|�}||_	td|�}t
||�}|D]
}tt|j
�|p>|k�q4tt|j
�t|j
�k�dd�|D�}d	d�|D�}d
d�|D�}	tdd�t|||	�D��}
||
}||
}|D]
}tt|j
�|p�|k�qztt�|��|k��tt|j
�t|j
�k�dS)N�
��css�|]	}td�dVqdS)rr
Nr��.0�dim�r�C/usr/lib/python3/dist-packages/numpy/lib/tests/test_arrayterator.py�	<genexpr>s�ztest.<locals>.<genexpr>�cSsg|]}t|��qSrrrrrr�
<listcomp>sztest.<locals>.<listcomp>cS�g|]}t|�d�qS�r
rrrrrr �cSrrrrrrrr!rcss�|]}t|�VqdS)N)�slice)r�trrrr"s�)�np�random�seed�aranger�tuple�rangerr�shaperr�len�flat�list�zip�all�	__array__)
�ndimsr�els�a�buf_size�b�block�start�stop�step�slice_�c�drrr�test
s*


r1)
�operatorr�	functoolsr�numpyr�numpy.randomr�	numpy.libr�
numpy.testingrr1rrrr�<module>s