Functions to solve a symmetric positive definite linear system of equations using the Conjugate Gradient method. More...
Classes | |
class | SpMatrix< T_ > |
To handle matrices in sparse storage format. More... | |
class | Prec< T_ > |
To set a preconditioner. More... | |
class | Vect< T_ > |
To handle general purpose vectors. More... | |
Namespaces | |
OFELI | |
A namespace to group all library classes, functions, ... | |
Functions | |
template<class T_ > | |
int | CG (const SpMatrix< T_ > &A, const Prec< T_ > &P, const Vect< T_ > &b, Vect< T_ > &x, int max_it, real_t toler) |
Conjugate gradient solver function. More... | |
template<class T_ > | |
int | CG (const SpMatrix< T_ > &A, int prec, const Vect< T_ > &b, Vect< T_ > &x, int max_it, real_t toler) |
Conjugate gradient solver function. More... | |
Functions to solve a symmetric positive definite linear system of equations using the Conjugate Gradient method.
Preconditioning is possible using a preconditioning class.