MCPcopy Index your code
hub / github.com/geekcomputers/Python / test_component_matrix

Method test_component_matrix

linear-algebra-python/src/tests.py:134–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 self.assertEqual("|1,2,5|\n|2,4,5|\n|6,7,8|\n", A.__str__())
133
134 def test_component_matrix(self):
135 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
136 self.assertEqual(7, A.component(2, 1), 0.01)
137
138 def test__add__matrix(self):
139 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)

Callers

nothing calls this directly

Calls 2

componentMethod · 0.95
MatrixClass · 0.85

Tested by

no test coverage detected