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

Method do

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

Source from the content-addressed store, hash-verified

658class SVDCases(LinalgSquareTestCase, LinalgGeneralizedSquareTestCase):
659
660 def do(self, a, b, tags):
661 u, s, vt = linalg.svd(a, False)
662 assert_allclose(a, dot_generalized(np.asarray(u) * np.asarray(s)[..., None, :],
663 np.asarray(vt)),
664 rtol=get_rtol(u.dtype))
665 assert_(consistent_subclass(u, a))
666 assert_(consistent_subclass(vt, a))
667
668
669class TestSVD(SVDCases, SVDBaseTests):

Callers

nothing calls this directly

Calls 5

assert_allcloseFunction · 0.90
assert_Function · 0.90
dot_generalizedFunction · 0.85
get_rtolFunction · 0.85
consistent_subclassFunction · 0.85

Tested by

no test coverage detected