o
    "ì¤g<  ã                   @   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   úY/var/www/html/ecg_monitoring/venv/lib/python3.10/site-packages/numpy/tests/test_matlib.pyÚ
test_empty   s   r   c                   C   óF   t tj d¡t g d¢g d¢g¡ƒ t tj d¡t ddgg¡ƒ d S )N©r   é   )ç      ð?r   r   r   r   )r   r   r   Úonesr
   r   r   r   r   r   Ú	test_ones
   ó   
ÿÿ"r   c                   C   r   )Nr   )ç        r   r   r   r   )r   r   r   Úzerosr
   r   r   r   r   r   Ú
test_zeros   r   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 g d¢g d¢g d¢g¡ƒ | jjs J ‚| jj	r&J ‚t jjddtdd	}t|t g d
¢g d¢g d¢g¡ƒ |jjrGJ ‚|jj	sMJ ‚d S )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Úxfr   r   r   Útest_eye   s   þþr*   c                  C   ó   t j d¡} t| jdkƒ d S ©Nr   r   )r   r   Úrandr   Úndimr   r   r   r   Ú	test_rand+   ó   r/   c                  C   r+   r,   )r
   r   Úrandnr   r.   r   r   r   r   Ú
test_randn0   r0   r2   c                  C   s>   t  d¡} tj | dd¡}t  g d¢g d¢g¡}t||ƒ d S )Nr!   r   )r   r   r   r   r   r   r   r   )r
   Úaranger   r   ÚrepmatÚarrayr   )Úa1r   Úyr   r   r   Útest_repmat5   s   

ÿr8   )r   r
   Únumpy.matlibÚnumpy.testingr   r   r   r   r   r   r*   r/   r2   r8   r   r   r   r   Ú<module>   s    