
    ii                     P    d dl mZ d dlmZ d dlZd dlmZ d dlm	Z	 d dl
mZ d ZdS )    )reduce)mulN)Arrayteratorrandint)assert_c                  F   t           j                            t          j        d                     t	          d          dz   } t          d t          |           D                       }t          t          |          }t          j        |          	                    |          }t	          d|z            }t          ||          }|D ])}t          t          |j                  |p|k               *t          t          |j                  t          |j                  k               d |D             }d |D             }d |D             }	t          d	 t          |||	          D                       }
||
         }||
         }|D ])}t          t          |j                  |p|k               *t          t          j        |                                |k                         t          t          |j                  t          |j                  k               d S )
N
         c              3   :   K   | ]}t          d           dz   V  dS )r
   r   Nr   .0dims     \/var/www/html/ecfs/ecfsenv/lib/python3.11/site-packages/numpy/lib/tests/test_arrayterator.py	<genexpr>ztest.<locals>.<genexpr>   s,      ::c'"++/::::::       c                 ,    g | ]}t          |          S  r   r   s     r   
<listcomp>ztest.<locals>.<listcomp>   s    +++cWS\\+++r   c                 2    g | ]}t          |          d z   S r   r   r   s     r   r   ztest.<locals>.<listcomp>   #    ...GCLL1...r   c                 2    g | ]}t          |          d z   S r   r   r   s     r   r   ztest.<locals>.<listcomp>    r   r   c              3   (   K   | ]}t          | V  d S )N)slice)r   ts     r   r   ztest.<locals>.<genexpr>!   s&      ==5!9======r   )nprandomseedaranger   tupleranger   r   reshaper   r   lenflatlistzipall	__array__)ndimsshapeelsabuf_sizebblockstartstopstepslice_cds                r   testr9   
   s   INN29R==!!! AJJNE::U5\\:::::E
e

C
	#u%%Aq3wHQ!!A  6 6EJHO45555 DLLDLL())) ,+U+++E.....D.....D==c%t&<&<=====F	&	A	&	A  6 6EJHO45555 BF1;;==A%&&''' DLLDLL()))))r   )	functoolsr   operatorr   numpyr   	numpy.libr   numpy.randomr   numpy.testingr   r9   r   r   r   <module>r@      s                    " " " " " "             ! ! ! ! ! !#* #* #* #* #*r   