MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / assert_symmetry

Method assert_symmetry

python/pymesh/tests/test_assembler.py:22–23  ·  view source on GitHub ↗
(self, A)

Source from the content-addressed store, hash-verified

20 return assembler
21
22 def assert_symmetry(self, A):
23 self.assertAlmostEqual(0.0, scipy.sparse.linalg.norm(A - A.T))
24
25 def assert_PD(self, A):
26 eig_values, eig_vectors = scipy.sparse.linalg.eigsh(A, 1, which="SM")

Callers 4

test_mass_matrixMethod · 0.95
test_stiffness_matrixMethod · 0.95

Calls 1

normMethod · 0.80

Tested by

no test coverage detected