![]() |
KASKADE 7 development version
|
A simple single-level symmetric Gauss-Seidel preconditioner. More...
#include <GaussSeidelPreconditioner.hh>
Public Member Functions | |
| GaussSeidelPreconditioner (Matrix const &A_, field_type w_=1.0, GaussSeidelPreconditionerMode mode_=GaussSeidelPreconditionerMode::SYMMETRIC) | |
| Constructor. | |
| void | apply (Domain &x, Range const &y) override |
| field_type | applyDp (Domain &x, Range const &y) override |
| bool | requiresInitializedInput () const override |
| Returns true if the target vector x has to be initialized to zero before calling apply or applyDp. | |
| virtual void | pre (X &, Xstar &) |
| Preconditioner preparation. | |
| virtual void | post (X &x) |
| Preconditioner cleanup. | |
| virtual field_type | applyDp (X &x, Xstar const &y)=0 |
| Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \). | |
| virtual Dune::SolverCategory::Category | category () const override |
| returns the category of the operator | |
A simple single-level symmetric Gauss-Seidel preconditioner.
For a square matrix \( A = L + D + R \), this solves \( (wL+D) x = wy \) in forward mode, \( (D+wR) x = wy \) in backward mode, or \( (wL+D)(D+wR) x = w^2y \) in symmetric mode for some stepsize (or damping factor) \( w \), and thus realizes a SOR or SSOR method as a generalization of the Gauss-Seidel method.
| Matrix |
Definition at line 51 of file GaussSeidelPreconditioner.hh.
|
inline |
Constructor.
| A | the matrix to be preconditioned. This is copied and stored internally, such that the provided matrix need not exist after the constructor call. The matrix must be square (not necessarily symmetric, though) and must have invertible diagonal elements. |
| w | the stepsize or damping factor |
Definition at line 65 of file GaussSeidelPreconditioner.hh.
|
inlineoverride |
Definition at line 77 of file GaussSeidelPreconditioner.hh.
Referenced by applyDp().
|
inlineoverride |
Definition at line 113 of file GaussSeidelPreconditioner.hh.
|
pure virtualinherited |
Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \).
Implemented in Kaskade::AdditiveMultiGrid< Smoother, Prolongation, CoarsePreconditioner >, Kaskade::HierarchicalBasisPreconditioner< Grid, Domain, Range >, Kaskade::IdentityPreconditioner< X >, Kaskade::JacobiPreconditionerDetail::JacobiPreconditionerBase< Kaskade::AssembledGalerkinOperator< Assembler, firstRow, firstRow+1, firstCol, firstCol+1, IstlInterfaceDetail::RangeBlockSelector< firstRow, firstRow+1, firstCol, firstCol+1 >, true >::matrix_type, Kaskade::AssembledGalerkinOperator< Assembler, firstRow, firstRow+1, firstCol, firstCol+1, IstlInterfaceDetail::RangeBlockSelector< firstRow, firstRow+1, firstCol, firstCol+1 >, true >::domain_type, Kaskade::AssembledGalerkinOperator< Assembler, firstRow, firstRow+1, firstCol, firstCol+1, IstlInterfaceDetail::RangeBlockSelector< firstRow, firstRow+1, firstCol, firstCol+1 >, true >::range_type >, Kaskade::JacobiPreconditionerDetail::JacobiPreconditionerBase< Operator::matrix_type, Operator::domain_type, Operator::range_type >, Kaskade::MultiplicativeMultiGrid< Entry, Index, Smoother, Prolongation >, Kaskade::SymmetricPreconditionerWrapper< X, Xstar >, and Kaskade::TrivialPreconditioner< Operator >.
|
inlineoverridevirtualinherited |
returns the category of the operator
From the Dune doxygen documentation it is unclear what this is supposed to mean. We return a dummy here.
Reimplemented in Kaskade::TrivialPreconditioner< Operator >.
Definition at line 248 of file symmetricOperators.hh.
|
inlinevirtualinherited |
Preconditioner cleanup.
The provided default implementation does nothing.
Reimplemented in Kaskade::HierarchicalBasisPreconditioner< Grid, Domain, Range >, Kaskade::SymmetricPreconditionerWrapper< X, Xstar >, and Kaskade::TrivialPreconditioner< Operator >.
Definition at line 231 of file symmetricOperators.hh.
|
inlinevirtualinherited |
Preconditioner preparation.
The provided default implementation does nothing.
Reimplemented in Kaskade::HierarchicalBasisPreconditioner< Grid, Domain, Range >, Kaskade::SymmetricPreconditionerWrapper< X, Xstar >, and Kaskade::TrivialPreconditioner< Operator >.
Definition at line 224 of file symmetricOperators.hh.
|
inlineoverridevirtual |
Returns true if the target vector x has to be initialized to zero before calling apply or applyDp.
Implements Kaskade::SymmetricPreconditioner< X, Xstar >.
Definition at line 119 of file GaussSeidelPreconditioner.hh.