MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / test_determinant

Method test_determinant

linear_algebra/src/test_linear_algebra.py:155–160  ·  view source on GitHub ↗

test for Matrix method determinant()

(self)

Source from the content-addressed store, hash-verified

153 assert cofactors[x][y] == a.cofactor(x, y)
154
155 def test_determinant(self) -> None:
156 """
157 test for Matrix method determinant()
158 """
159 a = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
160 assert a.determinant() == -5
161
162 def test__mul__matrix(self) -> None:
163 """

Callers

nothing calls this directly

Calls 2

determinantMethod · 0.95
MatrixClass · 0.70

Tested by

no test coverage detected