Ë
    !täi>  ã                   ó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_Úassert_array_equalc                  ó´   — t         j                  j                  d«      } t        t	        | t
        j                  «      «       t        | j                  d«       y )N)é   )é   r   )ÚnumpyÚmatlibÚemptyr   Ú
isinstanceÚnpÚmatrixÚshape©Úxs    úf/Volumes/fast/ai/experiments/MLX_z-image/.venv/lib/python3.12/site-packages/numpy/tests/test_matlib.pyÚ
test_emptyr      s7   € Ü�‰×Ñ˜4Ó €AÜŒJ�qœ"Ÿ)™)Ó$Ô%ÜˆA�G‰G�VÕó    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Ü—y‘y¢/Ú"1ð"3ó 4ô5ô ”u—|‘|×(Ñ(¨Ó+¬R¯Y©Y¸"¸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Ü—y‘y¢/Ú"1ð"3ó 4ô5ô ”u—|‘|×)Ñ)¨!Ó,¬b¯i©i¸"¸r¸¸Ó.DÕEr   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;   € Ü�‰×Ñ˜a¤sÐÓ+€AÜ�qœ"Ÿ)™) a¨ V¨a°¨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Ü�rœ2Ÿ9™9¢lÚ&2Ú&2ð&4ó 5ô 6ð �8‰8× Ò Ð Ð Ø�x‰x×$Ò$Ð$Ð$ä	�‰×	Ñ	˜!˜Q¤c°Ð	Ó	5€BÜ�rœ2Ÿ9™9Ò&6Ú&6Ú&6ð&8ó 9ô :ð �x‰x×$Ò$Ð$Ð$Ø�8‰8× Ò Ð Ñ r   c                  ór   — t         j                  j                  d«      } t        | j                  dk(  «       y ©Nr   r   )r   r	   Úrandr   Úndimr   s    r   Ú	test_randr4   ,   s&   € Ü�‰×Ñ˜!Ó€AäˆA�F‰F�a‰KÕr   c                  ór   — t         j                  j                  d«      } t        | j                  dk(  «       y r1   )r   r	   Úrandnr   r3   r   s    r   Ú
test_randnr7   1   s$   € Ü
�	‰	�‰˜Ó€AäˆA�F‰F�a‰KÕ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>   6   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òFò7ò!òò
ó
r   