MCPcopy
hub / github.com/numpy/numpy / do

Method do

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

Source from the content-addressed store, hash-verified

648class EigCases(LinalgSquareTestCase, LinalgGeneralizedSquareTestCase):
649
650 def do(self, a, b, tags):
651 res = linalg.eig(a)
652 eigenvalues, eigenvectors = res.eigenvalues, res.eigenvectors
653 assert_allclose(matmul(a, eigenvectors),
654 np.asarray(eigenvectors) * np.asarray(eigenvalues)[..., None, :],
655 rtol=get_rtol(eigenvalues.dtype))
656 assert_(consistent_subclass(eigenvectors, a))
657
658
659class TestEig(EigCases):

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