Skip to content

Commit 667ab6c

Browse files
authored
swaped --> swapped
1 parent 007c8b6 commit 667ab6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix/inverse_of_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def inverse_of_matrix(matrix: List[List[float]]) -> List[List[float]]:
3131
determinant = D(matrix[0][0]) * D(matrix[1][1]) - D(matrix[1][0]) * D(matrix[0][1])
3232
if determinant == 0:
3333
raise ValueError("This matrix has no inverse.")
34-
# Creates a copy of the matrix with swaped positions of the elements
34+
# Creates a copy of the matrix with swapped positions of the elements
3535
swapped_matrix = [[0.0, 0.0], [0.0, 0.0]]
3636
swapped_matrix[0][0], swapped_matrix[1][1] = matrix[1][1], matrix[0][0]
3737
swapped_matrix[1][0], swapped_matrix[0][1] = -matrix[1][0], -matrix[0][1]

0 commit comments

Comments
 (0)