(self, a, b, tags)
| 919 | class PinvHermitianCases(HermitianTestCase, HermitianGeneralizedTestCase): |
| 920 | |
| 921 | def do(self, a, b, tags): |
| 922 | a_ginv = linalg.pinv(a, hermitian=True) |
| 923 | # `a @ a_ginv == I` does not hold if a is singular |
| 924 | dot = matmul |
| 925 | result = dot(dot(a, a_ginv), a) |
| 926 | assert_almost_equal(result, a, single_decimal=5, double_decimal=11) |
| 927 | assert_(consistent_subclass(a_ginv, a)) |
| 928 | |
| 929 | |
| 930 | class TestPinvHermitian(PinvHermitianCases): |
nothing calls this directly
no test coverage detected