(9)

CGS.h File Reference

Solves an unsymmetric linear system of equations using the Conjugate Gradient Squared method. More...

Namespaces

 OFELI
 A namespace to group all library classes, functions, ...
 

Functions

template<class T_ >
int CGS (const SpMatrix< T_ > &A, const Prec< T_ > &P, const Vect< T_ > &b, Vect< T_ > &x, int max_it, real_t toler)
 Conjugate Gradient Squared solver function. More...
 
template<class T_ >
int CGS (const SpMatrix< T_ > &A, int prec, const Vect< T_ > &b, Vect< T_ > &x, int max_it, real_t toler)
 Conjugate Gradient Squared solver function. More...
 

Detailed Description

Solves an unsymmetric linear system of equations using the Conjugate Gradient Squared method.

Preconditioning is possible using a preconditioning class.