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 the type of the returned list as required.
  • Loading branch information
quant12345 authored Aug 9, 2023
commit 2be3f22321f14c2c19679171e4605270200d0ddd
2 changes: 1 addition & 1 deletion arithmetic_analysis/jacobi_iteration_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def jacobi_iteration_method(
constant_matrix: NDArray[float64],
init_val: list[int],
iterations: int,
) -> list[float]:
) -> NDArray[float64]:
"""
Jacobi Iteration Method:
An iterative algorithm to determine the solutions of strictly diagonally dominant
Expand Down