bg @dZddlZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZgZeededejdejejejdejejd h ed ejd d gddggejd d gjedejd d gddggejd d gjgz Zeededejd d gd d ggdgz ZGddeZGdde eZGddeeZGddeeZ GddeeZ!GddeeZ"Gdd eeZ#Gd!d"eeZ$Gd#d$eeZ%Gd%d&eeZ&Gd'd(e Z'Gd)d*e'e Z(Gd+d,e'e Z)Gd-d.e'e Z*Gd/d0eZ+dS)1z9 Test functions for linalg module using the matrix class.N) LinalgCase apply_tagTestQRLinalgTestCase _TestNorm2D_TestNormDoubleBase_TestNormSingleBase_TestNormInt64Base SolveCasesInvCases EigvalsCasesEigCasesSVDCases CondCases PinvCasesDetCases LstsqCasessquare 0x0_matrix)rr)dtype)rzsize-0)tags matrix_b_onlyg?g@g@g@matrix_a_and_b hermitianhmatrix_a_and_bceZdZeZdS)MatrixTestCaseN)__name__ __module__ __qualname__CASES TEST_CASES{/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib64/python3.11/site-packages/numpy/matrixlib/tests/test_matrix_linalg.pyrr$sJJJr%rceZdZdS)TestSolveMatrixNrr r!r$r%r&r(r((Dr%r(ceZdZdS) TestInvMatrixNr)r$r%r&r,r,,r*r%r,ceZdZdS)TestEigvalsMatrixNr)r$r%r&r.r.0r*r%r.ceZdZdS) TestEigMatrixNr)r$r%r&r0r04r*r%r0ceZdZdS) TestSVDMatrixNr)r$r%r&r2r28r*r%r2ceZdZdS)TestCondMatrixNr)r$r%r&r4r4<r*r%r4ceZdZdS)TestPinvMatrixNr)r$r%r&r6r6@r*r%r6ceZdZdS) TestDetMatrixNr)r$r%r&r8r8Dr*r%r8ceZdZdS)TestLstsqMatrixNr)r$r%r&r:r:Hr*r%r:ceZdZejZdS)_TestNorm2DMatrixNrr r!npmatrixarrayr$r%r&r<r<L IEEEr%r<ceZdZdS)TestNormDoubleMatrixNr)r$r%r&rCrCPr*r%rCceZdZdS)TestNormSingleMatrixNr)r$r%r&rErETr*r%rEceZdZdS)TestNormInt64MatrixNr)r$r%r&rGrGXr*r%rGceZdZejZdS) TestQRMatrixNr=r$r%r&rIrI\rAr%rI),__doc__numpyr>numpy.linalg.tests.test_linalgrrr_TestQRrrrr r r r r rrrrrrr"emptydoubleviewr?r@Trr(r,r.r0r2r4r6r8r:r<rCrErGrIr$r%r&rRs??%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8J|rxbi00055bi@@rxbi00055bi@@J   Jrx"bB8,--ry"b""$&&Jry2r(RH-..ry"b""$&&    ;J ry2r(RH-..!  ^     j.        Hn        n        Hn        Hn        Y        Y        Hn        j.         ,.A        ,.A        +-?   7r%