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

Method do

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

Source from the content-addressed store, hash-verified

824 LinalgGeneralizedNonsquareTestCase):
825
826 def do(self, a, b, tags):
827 a_ginv = linalg.pinv(a)
828 # `a @ a_ginv == I` does not hold if a is singular
829 dot = dot_generalized
830 assert_almost_equal(dot(dot(a, a_ginv), a), a, single_decimal=5, double_decimal=11)
831 assert_(consistent_subclass(a_ginv, a))
832
833
834class TestPinv(PinvCases):

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