MCPcopy Index your code
hub / github.com/numpy/numpy / do

Method do

numpy/linalg/tests/test_linalg.py:921–927  ·  view source on GitHub ↗
(self, a, b, tags)

Source from the content-addressed store, hash-verified

919class 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
930class TestPinvHermitian(PinvHermitianCases):

Callers

nothing calls this directly

Calls 4

dotFunction · 0.90
assert_almost_equalFunction · 0.90
assert_Function · 0.90
consistent_subclassFunction · 0.85

Tested by

no test coverage detected