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

Method do

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

Source from the content-addressed store, hash-verified

710class SVDCases(LinalgSquareTestCase, LinalgGeneralizedSquareTestCase):
711
712 def do(self, a, b, tags):
713 u, s, vt = linalg.svd(a, False)
714 assert_allclose(a, matmul(np.asarray(u) * np.asarray(s)[..., None, :],
715 np.asarray(vt)),
716 rtol=get_rtol(u.dtype))
717 assert_(consistent_subclass(u, a))
718 assert_(consistent_subclass(vt, a))
719
720
721class TestSVD(SVDCases, SVDBaseTests):

Callers

nothing calls this directly

Calls 5

assert_allcloseFunction · 0.90
matmulFunction · 0.90
assert_Function · 0.90
get_rtolFunction · 0.85
consistent_subclassFunction · 0.85

Tested by

no test coverage detected