Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jacobi_iteration_method.py the use of vector operations, which reduces the calculation time by dozens of times #8938

Merged
merged 15 commits into from
Sep 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update jacobi_iteration_method.py
Changed a line that was too long.
  • Loading branch information
quant12345 authored Aug 9, 2023
commit a735995360ac3a458a9ff36e7ba22c189bc4aa97
5 changes: 4 additions & 1 deletion arithmetic_analysis/jacobi_iteration_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def jacobi_iteration_method(
"""
denom - a list of values along the diagonal
val - values of the last column of the table array
masks - boolean mask of all strings without diagonal elements array coefficient_matrix

masks - boolean mask of all strings without diagonal
elements array coefficient_matrix

ttt - coefficient_matrix array values without diagonal elements
ind - column indexes for each row without diagonal elements
arr - list obtained by column indexes from the list init_val
Expand Down