
    gi                     N   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j0                  dej2                        j5                  ej6                         ej0                  dej2                        j5                  ej6                        d	h
       e
d ej8                  ddgddgg       ej6                  ddg      j:                         e
d ej6                  ddgddgg       ej6                  ddg      j:                        g      z  Ze ed e
d ej6                  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jN                  jQ                  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.y)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y)MatrixTestCaseN)__name__
__module____qualname__CASES
TEST_CASES     `/var/www/html/audio_env/lib/python3.12/site-packages/numpy/matrixlib/tests/test_matrix_linalg.pyr   r   2   s    Jr%   r   c                       e Zd Zy)TestSolveMatrixNr   r    r!   r$   r%   r&   r(   r(   6       r%   r(   c                       e Zd Zy)TestInvMatrixNr)   r$   r%   r&   r,   r,   :   r*   r%   r,   c                       e Zd Zy)TestEigvalsMatrixNr)   r$   r%   r&   r.   r.   >   r*   r%   r.   c                       e Zd Zy)TestEigMatrixNr)   r$   r%   r&   r0   r0   B   r*   r%   r0   c                       e Zd Zy)TestSVDMatrixNr)   r$   r%   r&   r2   r2   F   r*   r%   r2   c                       e Zd Zy)TestCondMatrixNr)   r$   r%   r&   r4   r4   J   r*   r%   r4   c                       e Zd Zy)TestPinvMatrixNr)   r$   r%   r&   r6   r6   N   r*   r%   r6   c                       e Zd Zy)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y)TestLstsqMatrixNr)   r$   r%   r&   r;   r;   V   s     	r%   r;   c                   $    e Zd Zej                  Zy)_TestNorm2DMatrixNr   r    r!   npmatrixarrayr$   r%   r&   r=   r=   ]       IIEr%   r=   c                       e Zd Zy)TestNormDoubleMatrixNr)   r$   r%   r&   rD   rD   a   r*   r%   rD   c                       e Zd Zy)TestNormSingleMatrixNr)   r$   r%   r&   rF   rF   e   r*   r%   rF   c                       e Zd Zy)TestNormInt64MatrixNr)   r$   r%   r&   rH   rH   i   r*   r%   rH   c                   $    e Zd Zej                  Zy)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      sW   ?      ( 	 8|rxxbii055bii@rxxbii055bii@J  rxx"bB8,-ryy"b"$$& ryy2r(RH-.ryy"b"$$& 
  ; ryy2r(RH-.! 
 ^ 	j. 		Hn 		n 		Hn 		Hn 		Y 		Y 		Hn 	 J  	j. 		 	,.A 		,.A 		+-? 	7 r%   