Jacobi Function

public function Jacobi(A, b, x_0, maxIter, err_x) result(x)

Computes the solution to the system using the Jacobi iterative method.

Arguments

Type IntentOptional Attributes Name
real, intent(in) :: A(:,:)

Non-singular matrix

real, intent(in) :: b(:)

Right hand side vector

real, intent(in) :: x_0(:)

Initial approximation for the iteration

integer, intent(in) :: maxIter

Maximum number of iterations

real, intent(in) :: err_x

Precision for the stop criterion

Return Value real, (size(A,2))

Solution vector x


Called by

proc~~jacobi~~CalledByGraph proc~jacobi Jacobi program~test_linear_solvers test_linear_solvers program~test_linear_solvers->proc~jacobi