
    Icg<                     T    d dl Zd dlZ d dlmZmZ d Zd Zd Zd Z	d Z
d Zd	 Zd
 Zy)    N)assert_array_equalassert_c                      t         j                  j                  d      } t        t	        | t
        j                               t        | j                  d       y )N)   )   r   )numpymatlibemptyr   
isinstancenpmatrixshapexs    R/var/www/html/bid-api/venv/lib/python3.12/site-packages/numpy/tests/test_matlib.py
test_emptyr      s7    4 AJq"))$%AGGV    c                     t        t        j                  j                  d      t	        j
                  g dg dg             t        t        j                  j                  d      t	        j
                  ddgg             y )Nr      )      ?r   r   r   r   )r   r   r	   onesr   r    r   r   	test_onesr   
   s[    u||((0yy/!0"2 34 u||((+RYY"r
|-DEr   c                     t        t        j                  j                  d      t	        j
                  g dg dg             t        t        j                  j                  d      t	        j
                  ddgg             y )Nr   )        r   r   r   r   )r   r   r	   zerosr   r   r   r   r   
test_zerosr      s[    u||))&1yy/!0"2 34 u||))!,bii2.EFr   c                      t         j                  j                  dt              } t	        | t        j                  ddgddgg             y )Nr   )dtyper   r   )r   r	   identityintr   r   r   r   s    r   test_identityr#      s;    as+Aq"))aVaV$456r   c            	         t         j                  j                  ddt              } t	        | t        j                  g dg dg dg             | j                  j                  sJ | j                  j                  rJ t         j                  j                  ddt        d	      }t	        |t        j                  g d
g dg dg             |j                  j                  rJ |j                  j                  sJ y )Nr   r   )kr    )r   r   r   )r   r   r   )r   r   r      F)r    order)r   r   r   r   )r   r   r   r   )r   r   r   r   )
r   r	   eyer"   r   r   r   flagsc_contiguousf_contiguous)xcxfs     r   test_eyer/      s    			!q		,Br299l&2&2&4 5 6 88    xx$$$$			!Qc		5Br299&6&6&6&8 9 : xx$$$$88    r   c                  r    t         j                  j                  d      } t        | j                  dk(         y Nr   r   )r   r	   randr   ndimr   s    r   	test_randr4   +   s&    !AAFFaKr   c                  r    t         j                  j                  d      } t        | j                  dk(         y r1   )r   r	   randnr   r3   r   s    r   
test_randnr7   0   s$    
		AAFFaKr   c                      t        j                  d      } t        j                  j	                  | dd      }t        j
                  g dg dg      }t        ||       y )Nr&   r   )r   r   r   r   r   r   r   r   )r   aranger   r	   repmatarrayr   )a1r   ys      r   test_repmatr>   5   sJ    	1BB1%A
**, 	-Aq!r   )r   r   numpy.matlibnumpy.testingr   r   r   r   r   r#   r/   r4   r7   r>   r   r   r   <module>rA      s8      5
FG7!

r   