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

Method do

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

Source from the content-addressed store, hash-verified

596class EigCases(LinalgSquareTestCase, LinalgGeneralizedSquareTestCase):
597
598 def do(self, a, b, tags):
599 res = linalg.eig(a)
600 eigenvalues, eigenvectors = res.eigenvalues, res.eigenvectors
601 assert_allclose(dot_generalized(a, eigenvectors),
602 np.asarray(eigenvectors) * np.asarray(eigenvalues)[..., None, :],
603 rtol=get_rtol(eigenvalues.dtype))
604 assert_(consistent_subclass(eigenvectors, a))
605
606
607class TestEig(EigCases):

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