Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/numpy/tests/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/numpy/tests/__pycache__/test_matlib.cpython-35.pyc



(��^V�@s�ddlmZmZmZddlZddlZddlmZm	Z	m
Z
dd�Zdd�Zdd	�Z
d
d�Zdd
�Zdd�Zdd�Zdd�Zedkr�e
�dS)�)�division�absolute_import�print_functionN)�assert_array_equal�assert_�run_module_suitecCs<tjjd�}tt|tj��t|jd�dS)N��)r)r	r)�numpy�matlib�emptyr�
isinstance�np�matrix�shape)�x�r��/builddir/build/BUILDROOT/alt-python35-numpy-1.13.3-2.el8.x86_64/opt/alt/python35/lib64/python3.5/site-packages/numpy/tests/test_matlib.py�
test_emptysrcCsittjjd�tjdddgdddgg��ttjjd�tjddgg��dS)Nr�g�?)rr)rr
r�onesrrrrrr�	test_onessrcCsittjjd�tjdddgdddgg��ttjjd�tjddgg��dS)Nrrg)rr)rr
r�zerosrrrrrr�
test_zerossrcCsGtjjddtj�}t|tjddgddgg��dS)Nr�dtyper	r)r
r�identityr�intrr)rrrr�
test_identitysrcCs\tjjddddt�}t|tjdddgdddgdddgg��dS)Nr�kr	rr)r
r�eyerrrr)rrrr�test_eyesr cCs)tjjd�}t|jdk�dS)Nrr)r
r�randr�ndim)rrrr�	test_rand$sr#cCs)tjjd�}t|jdk�dS)Nrr)rr�randnrr")rrrr�
test_randn)sr%c
Cs}tjd�}tjj|dd�}tjddddddddgddddddddgg�}t||�dS)N�rrr	r)r�aranger
rZrepmat�arrayr)�a1r�yrrr�test_repmat.s
!$r+�__main__)�
__future__rrrr
rZnumpy.matlibZ
numpy.testingrrrrrrrr r#r%r+�__name__rrrr�<module>s