Skip to content

Commit a53a48c

Browse files
eviltyphacclauss
andauthored
Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent e9c9f36 commit a53a48c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arithmetic_analysis/jacobi_iteration_method.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def strictly_diagonally_dominant(table: np.ndarray) -> bool:
150150
if i == j:
151151
continue
152152
else:
153-
sum = sum + table[i][j]
153+
sum += table[i][j]
154+
154155

155156
if table[i][i] <= sum:
156157
raise ValueError("Coefficient matrix is not strictly diagonally dominant")

0 commit comments

Comments
 (0)