HLIBpro  2.8.1
TLinearIteration Class Reference

Implements linear iteration \(x_{i+1} = x_k + N (A x_i - b)\). More...

#include <TLinearIteration.hh>

Inherits TSolver.

Public Member Functions

 TLinearIteration (const TStopCriterion &stop_crit=TStopCriterion())
 construct linear iteration solver object
 
 TLinearIteration (const real damping, const TStopCriterion &stop_crit=TStopCriterion())
 construct linear iteration solver object with damping
 
virtual ~TLinearIteration ()
 dtor
 
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
 
virtual void solve (const TLinearOperator *A, TMatrix *X, const TMatrix *B, const TLinearOperator *W=nullptr, TSolverInfo *info=nullptr) const
 solve A·X = B with optional preconditioner W
 

Detailed Description

\detail The class TLinearIteration implements a linear iteration solver based on the second normal form \(x_{i+1} = x_k + N (A x_i - b)\) with the iteration matrix \(N\). Please note, that the iteration matrix is defined as the preconditioner \(W\), e.g., for other linear iterations like Jacobi, GS or SOR, please use the correct preconditioner.