GaussSeidel Function

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

Computes the solution to the system using the Gauss-Seidel 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


Calls

proc~~gaussseidel~~CallsGraph proc~gaussseidel GaussSeidel proc~solve_l solve_L proc~gaussseidel->proc~solve_l

Called by

proc~~gaussseidel~~CalledByGraph proc~gaussseidel GaussSeidel program~test_linear_solvers test_linear_solvers program~test_linear_solvers->proc~gaussseidel