
    ii                        d Z ddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZ g Ze ed e
d ej        dej                                      ej                   ej        dej                                      ej                  d	h
           e
d ej        ddgddgg           ej        ddg          j                   e
d ej        ddgddgg           ej        ddg          j                  g          z  Ze ed e
d ej        ddgddgg          d          g          z  Z G d de          Z G d dee          Z G d de	e          Z  G d dee          Z! G d dee          Z" G d dee          Z# G d d ee          Z$ G d! d"ee          Z% G d# d$ee          Z&ej'        (                    d%&           G d' d(ee                      Z) G d) d*e          Z* G d+ d,e*e          Z+ G d- d.e*e          Z, G d/ d0e*e          Z- G d1 d2e          Z.dS )3z9 Test functions for linalg module using the matrix class.    N)	CondCasesDetCasesEigCasesEigvalsCasesInvCases
LinalgCaseLinalgTestCase
LstsqCases	PinvCases
SolveCasesSVDCasesTestQR_TestNorm2D_TestNormDoubleBase_TestNormInt64Base_TestNormSingleBase	apply_tagsquare
0x0_matrix)r   r   )dtype)r      zsize-0)tagsmatrix_b_onlyg      ?g       @g      @g      @matrix_a_and_b	hermitianhmatrix_a_and_bc                       e Zd ZeZdS )MatrixTestCaseN)__name__
__module____qualname__CASES
TEST_CASES     c/var/www/html/ecfs/ecfsenv/lib/python3.11/site-packages/numpy/matrixlib/tests/test_matrix_linalg.pyr   r   2   s        JJJr%   r   c                       e Zd ZdS )TestSolveMatrixNr   r    r!   r$   r%   r&   r(   r(   6           Dr%   r(   c                       e Zd ZdS )TestInvMatrixNr)   r$   r%   r&   r,   r,   :   r*   r%   r,   c                       e Zd ZdS )TestEigvalsMatrixNr)   r$   r%   r&   r.   r.   >   r*   r%   r.   c                       e Zd ZdS )TestEigMatrixNr)   r$   r%   r&   r0   r0   B   r*   r%   r0   c                       e Zd ZdS )TestSVDMatrixNr)   r$   r%   r&   r2   r2   F   r*   r%   r2   c                       e Zd ZdS )TestCondMatrixNr)   r$   r%   r&   r4   r4   J   r*   r%   r4   c                       e Zd ZdS )TestPinvMatrixNr)   r$   r%   r&   r6   r6   N   r*   r%   r6   c                       e Zd ZdS )TestDetMatrixNr)   r$   r%   r&   r8   r8   R   r*   r%   r8   z=residuals not calculated properly for square tests (gh-29851))reasonc                       e Zd ZdS )TestLstsqMatrixNr)   r$   r%   r&   r;   r;   V   s         	Dr%   r;   c                       e Zd Zej        ZdS )_TestNorm2DMatrixNr   r    r!   npmatrixarrayr$   r%   r&   r=   r=   ]           IEEEr%   r=   c                       e Zd ZdS )TestNormDoubleMatrixNr)   r$   r%   r&   rD   rD   a   r*   r%   rD   c                       e Zd ZdS )TestNormSingleMatrixNr)   r$   r%   r&   rF   rF   e   r*   r%   rF   c                       e Zd ZdS )TestNormInt64MatrixNr)   r$   r%   r&   rH   rH   i   r*   r%   rH   c                       e Zd Zej        ZdS )TestQRMatrixNr>   r$   r%   r&   rJ   rJ   m   rB   r%   rJ   )/__doc__pytestnumpyr?   numpy.linalg.tests.test_linalgr   r   r   r   r   r   r	   r
   r   r   r   r   _TestQRr   r   r   r   r   r"   emptydoubleviewr@   rA   Tr   r(   r,   r.   r0   r2   r4   r6   r8   markthread_unsafer;   r=   rD   rF   rH   rJ   r$   r%   r&   <module>rV      s   ? ?                                          ( 	 8J|rxbi00055bi@@rxbi00055bi@@J      Jrx"bB8,--ry"b""$& & Jry2r(RH-..ry"b""$& & 
 
  ;J ry2r(RH-.. ! 
 
     ^   	 	 	 	 	j. 	 	 		 	 	 	 	Hn 	 	 		 	 	 	 	n 	 	 		 	 	 	 	Hn 	 	 		 	 	 	 	Hn 	 	 		 	 	 	 	Y 	 	 		 	 	 	 	Y 	 	 		 	 	 	 	Hn 	 	 	 J   	 	 	 	 	j. 	 	 	       	 	 	 	 	,.A 	 	 		 	 	 	 	,.A 	 	 		 	 	 	 	+-? 	 	 	    7     r%   