Skip to content

Commit

Permalink
Add reference for finding out non-diagonal elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleshot committed Sep 7, 2024
1 parent 0265eba commit 3fbf25a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def solve_jacobi(A: np.ndarray, b: np.ndarray, n: int) -> list:
aii = np.diag(A).tolist()

# To understand various ways of calculating non-diagonal elements, referred to this -
# To understand various ways of calculating non-diagonal elements, referred to this - https://stackoverflow.com/a/46736275/12346331
m = np.array(A).shape[0]
strided = np.lib.stride_tricks.as_strided
s0, s1 = np.array(A).strides
Expand Down

0 comments on commit 3fbf25a

Please sign in to comment.