|
HLIBpro
2.0
|
implements SOR preconditioner More...
#include <TSOR.hh>
Public Member Functions | |
| TSOR (const TSparseMatrix *A, const sor_type_t sor_type, const real omega=1.0, const real damping=1.0) | |
| const TSparseMatrix * | matrix () const |
| return internal sparse matrix | |
| sor_type_t | sor_type () const |
| return SOR type | |
| real | damping_factor () const |
| return damping factor | |
| bool | is_complex () const |
| return true, if field type is complex | |
| bool | is_self_adjoint () const |
| return true, of operator is self adjoint | |
| virtual void | apply (const TVector *x, TVector *y, const matop_t op) const |
| virtual void | apply_add (const real alpha, const TVector *x, TVector *y, const matop_t op) const |
| virtual TVector * | domain_vector () const |
| return vector in domain space | |
| virtual TVector * | range_vector () const |
| return vector in range space | |
TSOR provides application of a SOR type preconditioner for a given matrix
, with diagonal D, strictly lower triangular matrix L and strictly upper triangular matrix U.
For forward SOR, the applied operator is
, for backward SOR
and the combination of both for the symmetric SOR.
The matrix A must be a sparse matrix.
| TSOR | ( | const TSparseMatrix * | A, |
| const sor_type_t | sor_type, | ||
| const real | omega = 1.0, |
||
| const real | damping = 1.0 |
||
| ) |
constructs SOR preconditioner of type sor_type using coefficients as defined by A
mapping function of linear operator
, e.g.
. Depending on op, either
,
or
is applied.
Implements TLinearOperator.
|
virtual |
mapping function with update:
. Depending on op, either
,
or
is applied.
Implements TLinearOperator.
1.8.4