o
    õ­dl
  ã                   @   sF   d dl Z d dlZd dlZd dlmZmZ d dlmZ	 G dd„ dƒZ
dS )é    N)Ú	DataFrameÚSeriesc                   @   s   e Zd Zdd„ ZdS )Ú
TestMatmulc                 C   s¢  t tj d¡g d¢d}ttj dd¡g d¢g d¢dj}t ||¡}t t |j	|j	¡g d¢d}t
 ||¡ t |j|¡}t t |jj	|jj	¡g d¢d}t
 ||¡ t ||¡}t |j	|j	¡}t
 ||¡ t |j	|¡}t |j	|j	¡}t
 ||¡ t |j	 ¡ |¡}t |j	|j	¡}t
 ||¡ t |jj	|¡}t |jj	|j	¡}t
 ||¡ t |jj	 ¡ |¡}t |jj	|j	¡}t
 ||¡ t|jƒ|d< t |j|¡}t t |jj	|jj	¡g d¢d}t
 ||¡ | t¡}t |j|¡}t t |jj	|jj	¡g d¢d}t
 ||¡ d}tjt|d	 | |j	d d… ¡ W d   ƒ n	1 s)w   Y  d
}tjt|d	 | |j¡ W d   ƒ d S 1 sJw   Y  d S )Né   )ÚpÚqÚrÚs)Úindexé   )Ú1Ú2Ú3)r
   Úcolumnsr   z,Dot product shape mismatch, \(4,\) vs \(3,\))Úmatchzmatrices are not aligned)r   ÚnpÚrandomÚrandnr   ÚTÚoperatorÚmatmulÚdotÚvaluesÚtmÚassert_series_equalÚassert_almost_equalÚtolistÚintr   ÚastypeÚpytestÚraisesÚ	ExceptionÚ
ValueError)ÚselfÚaÚbÚresultÚexpectedÚmsg© r)   úl/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/pandas/tests/series/methods/test_matmul.pyÚtest_matmul   sV   ÿþ  
 ÿ$ÿzTestMatmul.test_matmulN)Ú__name__Ú
__module__Ú__qualname__r+   r)   r)   r)   r*   r      s    r   )r   Únumpyr   r   Úpandasr   r   Úpandas._testingÚ_testingr   r   r)   r)   r)   r*   Ú<module>   s    