
    Owg
                     L    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      Z
y)    N)	DataFrameSeriesc                       e Zd Zd Zy)
TestMatmulc                 
   t        t        j                  j                  d      j	                  d      g d      }t        t        j                  j                  d      j	                  d      g dg d      j                  }t        j                  ||      }t        t        j                  |j                  |j                        g d      }t        j                  ||       t        j                  |j                  |      }t        t        j                  |j                  j                  |j                  j                        g d      }t        j                  ||       t        j                  ||      }t        j                  |j                  |j                        }t        j                  ||       t        j                  |j                  |      }t        j                  |j                  |j                        }t        j                  ||       t        j                  |j                  j                         |      }t        j                  |j                  |j                        }t        j                  ||       t        j                  |j                  j                  |      }t        j                  |j                  j                  |j                        }t        j                  ||       t        j                  |j                  j                  j                         |      }t        j                  |j                  j                  |j                        }t        j                  ||       t        |j                         |d<   t        j                  |j                  |      }t        t        j                  |j                  j                  |j                  j                        g d      }t        j                  ||       |j#                  t              }t        j                  |j                  |      }t        t        j                  |j                  j                  |j                  j                        g d      }t        j                  ||       d	}t%        j&                  t(        |
      5  |j                  |j                  d d        d d d        d}t%        j&                  t*        |
      5  |j                  |j                         d d d        y # 1 sw Y   KxY w# 1 sw Y   y xY w)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msgs         ^/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/series/methods/test_matmul.pytest_matmulzTestMatmul.test_matmul   sw   II!!!$44Q7?S
 II!!!$44V<!(
 !	 	
 A&"&&1884OL
vx0 a("&&QSSZZ8P
vx0 A&66!((AHH-
vx0 1-66!((AHH-
vx0 !2A666!((AHH-
vx0 Q/66!##**ahh/
vx0 !2!2!4a866!##**ahh/
vx0 QSS#a("&&QSSZZ8P
vx0 HHSMa("&&QSSZZ8P
vx0=]]9C0 	 EE!((2A,	 (]]:S1 	EE!##J	 		  	 	 	s   T7U7U UN)__name__
__module____qualname__r/        r.   r   r      s    Dr4   r   )r   numpyr   r$   pandasr   r   pandas._testing_testingr   r   r3   r4   r.   <module>r9      s$       E Er4   