HLIBpro  2.4
Public Member Functions | List of all members
TRichardson Class Reference

Implements Richardson iteration $x_{i+1} = x_k + \omega W (Ax_k - b)$.

#include <TRichardson.hh>

Inherits TSolver.

Public Member Functions

 TRichardson (const real omega=1.0, const uint max_iter=100, const real abs_res_red=real(1e-8), const real rel_res_red=real(1e-8), const real rel_res_growth=real(1e6))
 construct Richardson solver object with corresponding stop criteria
 
 TRichardson (const real omega, const TStopCriterion &stop_crit)
 construct Richardson solver object with corresponding stop criteria
 
virtual ~TRichardson ()
 dtor
 
virtual void solve (const TLinearOperator *A, TVector *x, const TVector *b, const TLinearOperator *W=nullptr, TInfo *data=nullptr) const
 solve A·x = b with optional preconditioner W