Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c72264

Browse filesBrowse files
committed
updated matrix_inversion
1 parent 63d81c0 commit 1c72264
Copy full SHA for 1c72264

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎numpy/linear-algebra/matrix_inversion.py

Copy file name to clipboardExpand all lines: numpy/linear-algebra/matrix_inversion.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from matrix_utils import determine_matrix
2+
from matrix_utils import determine_matrix as matrix
33

44

55
def compute_inverse(matrix):
@@ -9,7 +9,7 @@ def compute_inverse(matrix):
99
except np.linalg.LinAlgError:
1010
raise ValueError('The matrix is not invertible because its determinant is zero.')
1111

12-
matrix = determine_matrix(square_matrix=True)
12+
matrix = matrix(square_matrix=True)
1313

1414
try:
1515
inverse_matrix = compute_inverse(matrix)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.