B
    GŽ0d<  ã               @   sd   d dl Zd dlZ d dlmZmZ dd„ Zdd„ Zdd„ Zd	d
„ Z	dd„ Z
dd„ Zdd„ Zdd„ ZdS )é    N)Úassert_array_equalÚassert_c              C   s,   t j d¡} tt| tjƒƒ t| jdƒ d S )N)é   )é   r   )ÚnumpyÚmatlibÚemptyr   Ú
isinstanceÚnpÚmatrixÚshape)Úx© r   úI/var/www/html/venv/lib/python3.7/site-packages/numpy/tests/test_matlib.pyÚ
test_empty   s    r   c               C   sJ   t tj d¡t dddgdddgg¡ƒ t tj d¡t ddgg¡ƒ d S )N)r   é   g      ð?r   )r   r   r   Zonesr
   r   r   r   r   r   Ú	test_ones
   s    r   c               C   sJ   t tj d¡t dddgdddgg¡ƒ t tj d¡t ddgg¡ƒ d S )N)r   r   g        r   )r   r   r   Zzerosr
   r   r   r   r   r   Ú
test_zeros   s    r   c              C   s0   t jjdtd} t| t ddgddgg¡ƒ d S )Nr   )Údtyper   r   )r   r   ÚidentityÚintr   r
   r   )r   r   r   r   Útest_identity   s    r   c           
   C   s°   t jjddtd} t| t dddgdddgdddgg¡ƒ | jjsFt	‚| jj
rRt	‚t jjddtdd}t|t ddddgddddgddddgg¡ƒ |jjr t	‚|jj
s¬t	‚d S )Nr   r   )Úkr   r   é   ÚF)r   Úorder)r   r   Úeyer   r   r
   r   ÚflagsÚc_contiguousÚAssertionErrorÚf_contiguous)ZxcZxfr   r   r   Útest_eye   s    
r!   c              C   s   t j d¡} t| jdkƒ d S )Nr   r   )r   r   Zrandr   Úndim)r   r   r   r   Ú	test_rand+   s    r#   c              C   s   t j d¡} t| jdkƒ d S )Nr   r   )r
   r   Zrandnr   r"   )r   r   r   r   Ú
test_randn0   s    r$   c              C   sV   t  d¡} tj | dd¡}t  ddddddddgddddddddgg¡}t||ƒ d S )Nr   r   r   r   r   )r
   Zaranger   r   ZrepmatÚarrayr   )Za1r   Úyr   r   r   Útest_repmat5   s
    
r'   )r   r
   Znumpy.matlibZnumpy.testingr   r   r   r   r   r   r!   r#   r$   r'   r   r   r   r   Ú<module>   s   