HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/numpy/tests/__pycache__/test_matlib.cpython-310.pyc
o

���g<�@sdddlZddlZddlmZmZdd�Zdd�Zdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dS)�N)�assert_array_equal�assert_cCs,tj�d�}tt|tj��t|jd�dS)N)�)�r)�numpy�matlib�emptyr�
isinstance�np�matrix�shape��x�r�B/usr/local/lib/python3.10/dist-packages/numpy/tests/test_matlib.py�
test_emptysrcC�Fttj�d�t�gd�gd�g��ttj�d�t�ddgg��dS)N�r�)��?rrrr)rrr�onesr
rrrrr�	test_ones
�
��"rcCr)Nr)�rrrr)rrr�zerosr
rrrrr�
test_zerosrrcCs0tjjdtd�}t|t�ddgddgg��dS)Nr)�dtyperr)rr�identity�intrr
rr
rrr�
test_identitys rcCs�tjjddtd�}t|t�gd�gd�gd�g��|jjs J�|jj	r&J�tjjddtdd	�}t|t�gd
�gd�gd�g��|jjrGJ�|jj	sMJ�dS)
Nrr)�kr)rrr)rrr)rrr��F)r�order)rrrr)rrrr)rrrr)
rr�eyerrr
r�flags�c_contiguous�f_contiguous)�xc�xfrrr�test_eyes��r*cC�tj�d�}t|jdk�dS�Nrr)rr�randr�ndimr
rrr�	test_rand+�r/cCr+r,)r
r�randnrr.r
rrr�
test_randn0r0r2cCs>t�d�}tj�|dd�}t�gd�gd�g�}t||�dS)Nr!r)rrrrrrrr)r
�arangerr�repmat�arrayr)�a1r�yrrr�test_repmat5s

�r8)rr
�numpy.matlib�
numpy.testingrrrrrrr*r/r2r8rrrr�<module>s