K i>TddlZddlZddlmZmZdZdZdZdZ dZ dZ d Z d Z y) N)assert_assert_array_equalctjjd}tt |t j t|jdy)N))r)numpymatlibemptyr isinstancenpmatrixshapexs ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/tests/test_matlib.py test_emptyrs7 4 A Jq")) $% AGGVcttjjdt j gdgdgttjjdt j ddggy)Nr)?rrrr)rrr onesr r rr test_onesr s[u||((0yy/"1"345u||((+RYY"r |-DErcttjjdt j gdgdgttjjdt j ddggy)Nr)rrrr)rrr zerosr r rrr test_zerosrs[u||))&1yy/"1"345u||))!,bii"r .DErctjjdt}t |t j ddgddggy)Nr)dtyperr)rr identityintrr r rs r test_identityr#s; as+Aq"))aVaV$456rc tjjddt}t |t j gdgdgdg|jjsJ|jjrJtjjddtd }t |t j gd gd gd g|jjrJ|jjsJy) Nrr)kr )rrr)rrr)rrrF)r order)rrrr)rrrr)rrrr) rr eyer"rr r flags c_contiguous f_contiguous)xcxfs rtest_eyer/s   !q  ,Br299l&2&2&456 88  xx$$$ $   !Qc  5Br299&6&6&6&89:xx$$$ $ 88  rcrtjjd}t|jdk(yNrr)rr randrndimrs r test_randr4,s& !A AFFaKrcrtjjd}t|jdk(yr1)r r randnrr3rs r test_randnr71s$ A AFFaKrctjd}tjj |dd}tj gdgdg}t ||y)Nr&r)rrrrrrrr)r arangerr repmatarrayr)a1rys r test_repmatr>6sJ 1B B1%A **, -Aq!r)rr numpy.matlib numpy.testingrrrrrr#r/r4r7r>rrrrAs85 FF7 !  r