MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / test_str_matrix

Method test_str_matrix

linear_algebra_python/src/tests.py:104–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 x.changeComponent(1,1)
103 self.assertEqual(str(x),"(0,1,0)")
104 def test_str_matrix(self):
105 A = Matrix([[1,2,3],[2,4,5],[6,7,8]],3,3)
106 self.assertEqual("|1,2,3|\n|2,4,5|\n|6,7,8|\n",str(A))
107 def test__mul__matrix(self):
108 A = Matrix([[1,2,3],[4,5,6],[7,8,9]],3,3)
109 x = Vector([1,2,3])

Callers

nothing calls this directly

Calls 1

MatrixClass · 0.85

Tested by

no test coverage detected