GMRes.h File Reference

Function to solve a linear system of equations using the Generalized Minimum Residual method. More...

Namespaces

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

Functions

template<class T_ >
int GMRes (const SpMatrix< T_ > &A, const Prec< T_ > &P, const Vect< T_ > &b, Vect< T_ > &x, size_t m, int max_it, real_t toler)
 GMRes solver function.
 
template<class T_ >
int GMRes (const SpMatrix< T_ > &A, int prec, const Vect< T_ > &b, Vect< T_ > &x, size_t m, int max_it, real_t toler)
 GMRes solver function.
 

Detailed Description

Function to solve a linear system of equations using the Generalized Minimum Residual method.

Preconditioning is possible using a preconditioning class.