HLIBpro 3.1
|
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 double damping, const TStopCriterion &stop_crit=TStopCriterion()) | |
construct linear iteration solver object with damping | |
virtual | ~TLinearIteration () |
dtor | |
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 | |
template<typename value_t > | |
void | solve (const TLinearOperator< value_t > *A, TMatrix< value_t > *X, const TMatrix< value_t > *B, const TLinearOperator< value_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 |
solve A·x = b with optional preconditioner W | |
\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.