o
    ҷh
                     @   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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 sOw   Y  d S )N      )pqrs)index)   r   )123)r   columnsr   z,Dot product shape mismatch, \(4,\) vs \(3,\))matchr   zmatrices are not aligned)r   nprandomdefault_rngstandard_normalr   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+   Z/var/www/html/venv/lib/python3.10/site-packages/pandas/tests/series/methods/test_matmul.pytest_matmul   s^     
 $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    