MCPcopy Create free account
hub / github.com/numpy/numpy / do

Method do

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

Source from the content-addressed store, hash-verified

838class PinvHermitianCases(HermitianTestCase, HermitianGeneralizedTestCase):
839
840 def do(self, a, b, tags):
841 a_ginv = linalg.pinv(a, hermitian=True)
842 # `a @ a_ginv == I` does not hold if a is singular
843 dot = dot_generalized
844 assert_almost_equal(dot(dot(a, a_ginv), a), a, single_decimal=5, double_decimal=11)
845 assert_(consistent_subclass(a_ginv, a))
846
847
848class TestPinvHermitian(PinvHermitianCases):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected