Skip to content

Commit be71e2f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a7d916e commit be71e2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: linear_algebra/matrix_inversion.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
22

3+
34
def invert_matrix(matrix: list[list[float]]) -> list[list[float]]:
45
"""
56
Returns the inverse of a square matrix using NumPy.
@@ -19,10 +20,7 @@ def invert_matrix(matrix: list[list[float]]) -> list[list[float]]:
1920

2021

2122
if __name__ == "__main__":
22-
mat = [
23-
[4, 7],
24-
[2, 6]
25-
]
23+
mat = [[4, 7], [2, 6]]
2624
print("Original Matrix:")
2725
print(mat)
2826
print("Inverted Matrix:")

0 commit comments

Comments
 (0)