o 6a  @s(dZddlZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZgZeededejdejdejejdejdejd hd ed ed d gddgged d gjeded d gddgged d gjg7Zeededed d gd d ggdg7ZGdddeZGddde eZGdddeeZGdddeeZ GdddeeZ!GdddeeZ"Gdd d eeZ#Gd!d"d"eeZ$Gd#d$d$eeZ%Gd%d&d&eeZ&Gd'd(d(e Z'Gd)d*d*e'e Z(Gd+d,d,e'e Z)Gd-d.d.e'e Z*Gd/d0d0eZ+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_bc@seZdZeZdS)MatrixTestCaseN)__name__ __module__ __qualname__CASES TEST_CASESr"r"J/usr/lib/python3/dist-packages/numpy/matrixlib/tests/test_matrix_linalg.pyr$src@ eZdZdS)TestSolveMatrixNrrrr"r"r"r#r%(r%c@r$) TestInvMatrixNr&r"r"r"r#r(,r'r(c@r$)TestEigvalsMatrixNr&r"r"r"r#r)0r'r)c@r$) TestEigMatrixNr&r"r"r"r#r*4r'r*c@r$) TestSVDMatrixNr&r"r"r"r#r+8r'r+c@r$)TestCondMatrixNr&r"r"r"r#r,<r'r,c@r$)TestPinvMatrixNr&r"r"r"r#r-@r'r-c@r$) TestDetMatrixNr&r"r"r"r#r.Dr'r.c@r$)TestLstsqMatrixNr&r"r"r"r#r/Hr'r/c@eZdZejZdS)_TestNorm2DMatrixNrrrnpmatrixarrayr"r"r"r#r1L r1c@r$)TestNormDoubleMatrixNr&r"r"r"r#r7Pr'r7c@r$)TestNormSingleMatrixNr&r"r"r"r#r8Tr'r8c@r$)TestNormInt64MatrixNr&r"r"r"r#r9Xr'r9c@r0) TestQRMatrixNr2r"r"r"r#r:\r6r:),__doc__numpyr3numpy.linalg.tests.test_linalgrrr_TestQRrrrrr r r r r rrrrrr emptydoubleviewr4r5Trr%r(r)r*r+r,r-r.r/r1r7r8r9r:r"r"r"r#sPL