Update jacobi_iteration_method.py

Changed the type of the returned list as required.
This commit is contained in:
Kamil 2023-08-09 18:10:09 +05:00 committed by GitHub
parent 34b0a121ed
commit 2be3f22321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ def jacobi_iteration_method(
constant_matrix: NDArray[float64], constant_matrix: NDArray[float64],
init_val: list[int], init_val: list[int],
iterations: int, iterations: int,
) -> list[float]: ) -> NDArray[float64]:
""" """
Jacobi Iteration Method: Jacobi Iteration Method:
An iterative algorithm to determine the solutions of strictly diagonally dominant An iterative algorithm to determine the solutions of strictly diagonally dominant