MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / adjugate

Method adjugate

matrix/matrix_class.py:216–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 )
215
216 def adjugate(self) -> Matrix:
217 values = [
218 [self.cofactors().rows[column][row] for column in range(self.num_columns)]
219 for row in range(self.num_rows)
220 ]
221 return Matrix(values)
222
223 def inverse(self) -> Matrix:
224 determinant = self.determinant()

Callers 1

inverseMethod · 0.95

Calls 2

cofactorsMethod · 0.95
MatrixClass · 0.70

Tested by

no test coverage detected