Skip to content

Commit 381f069

Browse files
Update matrix_class.py
1 parent 6e99587 commit 381f069

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

matrix/matrix_class.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,9 @@ def cofactors(self) -> Matrix:
204204
return Matrix(
205205
[
206206
[
207-
(
208-
self.minors().rows[row][column]
209-
if (row + column) % 2 == 0
210-
else self.minors().rows[row][column] * -1
211-
)
207+
self.minors().rows[row][column]
208+
if (row + column) % 2 == 0
209+
else self.minors().rows[row][column] * -1
212210
for column in range(self.minors().num_columns)
213211
]
214212
for row in range(self.minors().num_rows)

0 commit comments

Comments
 (0)