
    ii
                     T    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
dS )    N)	DataFrameSeriesc                       e Zd Zd ZdS )
TestMatmulc                 n	   t          t          j                            d                              d          g d          }t          t          j                            d                              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
                                        |          }t          j	        |j
        |j
                  }t          j        ||           t          j        |j        j
        |          }t          j	        |j        j
        |j
                  }t          j        ||           t          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        ||           |                    t                    }t          j        |j        |          }t          t          j	        |j        j
        |j        j
                  g d          }t          j        ||           d	}t%          j        t(          |
          5  |	                    |j
        d d                    d d d            n# 1 swxY w Y   d}t%          j        t*          |
          5  |	                    |j                   d d d            d S # 1 swxY w 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msgs         b/var/www/html/ecfs/ecfsenv/lib/python3.11/site-packages/pandas/tests/series/methods/test_matmul.pytest_matmulzTestMatmul.test_matmul   sX   I!!!$$44Q77?S?S?S
 
 
 I!!!$$44V<<!//(((
 
 
 	 	
 A&&"&1844OOOLLL
vx000 a(("&QSZ88PPP
vx000 A&&6!(AH--
vx000 1--6!(AH--
vx000 !2!2A666!(AH--
vx000 Q//6!#*ah//
vx000 !2!2!4!4a886!#*ah//
vx000 QS#a(("&QSZ88PPP
vx000 HHSMMa(("&QSZ88PPP
vx000=]9C000 	  	 EE!(2A2,	  	  	  	  	  	  	  	  	  	  	  	  	  	  	 (]:S111 	 	EE!#JJJ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s$   +#QQ!QR**R.1R.N)__name__
__module____qualname__r/        r.   r   r      s(        D D D D Dr4   r   )r   numpyr   r$   pandasr   r   pandas._testing_testingr   r   r3   r4   r.   <module>r9      s                      E E E E E E E E E Er4   