HLIBpro 3.1
Loading...
Searching...
No Matches
TGMRES Class Reference

Implements GMRES iteration with restart.

#include <TGMRES.hh>

Inherits TSolver.

Public Member Functions

 TGMRES (const TStopCriterion &stop_crit=TStopCriterion())
 construct GMRES solver object with default restart
 
 TGMRES (const uint restart, const TStopCriterion &stop_crit=TStopCriterion())
 construct GMRES solver object with given restart
 
template<typename value_t , typename value_pre_t >
void solve (const TLinearOperator< value_t > *A, TVector< value_t > *x, const TVector< value_t > *b, const TLinearOperator< value_pre_t > *W=nullptr, TSolverInfo *info=nullptr) const
 solve A·x = b with optional preconditioner W
 
virtual void solve (any_const_operator_t A, any_vector_t x, any_const_vector_t b, any_const_operator_t W, TSolverInfo *info=nullptr) const
 generic implementation for "virtual" solve method