
    G/Ph                     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 )    )mul)reduceNrandint)Arrayterator)assert_c                  .   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     a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numpy/lib/tests/test_arrayterator.py	<genexpr>ztest.<locals>.<genexpr>   s,      88C'"++a-888888       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>    "    ,,,sGCLLN,,,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   shaper   r   lenflatlistzipall	__array__)ndimsr%   elsabuf_sizebblockstartstopstepslice_cds                r   testr8   
   s   INN29R==!!! AJJqLE885<<88888E
e

C
	#AAGqu~~HQ!!A  6 6EJHO45555 DLLDLL())) ,+U+++E,,e,,,D,,e,,,D==c%t&<&<=====F	&	A	&	A  6 6EJHO45555 BF1;;==A%&&''' DLLDLL()))))r   )operatorr   	functoolsr   numpyr   numpy.randomr   	numpy.libr   numpy.testingr   r8   r   r   r   <module>r?      s                                " " " " " " ! ! ! ! ! !$* $* $* $* $*r   