Computes the solution to the system using the Gauss-Seidel iterative method.
| Type | Intent | Optional | 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 |
Solution vector x