<< sp_cgs Sparse functions

sci_getfem >> sci_getfem > Sparse functions > sp_cgs

sp_cgs

Use a modified generalized conjugate residual algorithm to solve the system A.x = b

Calling Sequence

[xsol[,iter[,residual]]] = sp_mgcr(A,b,tol[,maxit[,k[,M[,x0]]]])

Parameters

A

the A real sparse matrix of the system to be solved.

b

the b real vector of the system to be solved.

tol

the tolerance for the resolution of the equation system.

k

no. of direction (search) vectors; = 0 - none.

maxit

the maximum number of iteration of the solver.

M

the preconditionning matrix (an identity matrix by default).

x0

an initial starting solution.

xsol

the solution vector of the system.

iter

the number of iterations performed to solve the system.

Description

Use a conjugate gradient to solve the system A.x = b

Example

See Also

Authors


Report an issue
<< sp_cgs Sparse functions