HLIBpro  2.5.1
TCGS Class Reference

Implements squared conjugate gradient iteration.

#include <TCGS.hh>

Inherits TSolver.

Public Member Functions

 TCGS (const TStopCriterion &stop_crit=TStopCriterion())
 construct CG solver object with corresponding stop criteria
 
virtual void solve (const TLinearOperator *A, TVector *x, const TVector *b, const TLinearOperator *W=nullptr, TSolverInfo *info=nullptr) const
 solve A·x = b with optional preconditioner W