KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::IdentityPreconditioner< X > Class Template Reference

The trivial (identity) preconditioner. More...

#include <symmetricOperators.hh>

Inheritance diagram for Kaskade::IdentityPreconditioner< X >:
Kaskade::SymmetricPreconditioner< X, X >

Public Types

typedef X::field_type field_type

Public Member Functions

virtual void apply (X &v, const X &d)
virtual field_type applyDp (X &x, X const &y)
 Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \).
virtual bool requiresInitializedInput () const
 Returns true if the target vector x has to be initialized to zero before calling apply or applyDp.
virtual void pre (X &, X &)
 Preconditioner preparation.
virtual void post (X &x)
 Preconditioner cleanup.
virtual Dune::SolverCategory::Category category () const override
 returns the category of the operator

Detailed Description

template<class X>
class Kaskade::IdentityPreconditioner< X >

The trivial (identity) preconditioner.

Definition at line 259 of file symmetricOperators.hh.

Member Typedef Documentation

◆ field_type

template<class X>
typedef X::field_type Kaskade::IdentityPreconditioner< X >::field_type

Definition at line 262 of file symmetricOperators.hh.

Member Function Documentation

◆ apply()

template<class X>
virtual void Kaskade::IdentityPreconditioner< X >::apply ( X & v,
const X & d )
inlinevirtual

Definition at line 264 of file symmetricOperators.hh.

◆ applyDp()

template<class X>
virtual field_type Kaskade::IdentityPreconditioner< X >::applyDp ( X & x,
X const & y )
inlinevirtual

Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \).

Implements Kaskade::SymmetricPreconditioner< X, X >.

Definition at line 272 of file symmetricOperators.hh.

◆ category()

virtual Dune::SolverCategory::Category Kaskade::SymmetricPreconditioner< X, X >::category ( ) const
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.

Definition at line 248 of file symmetricOperators.hh.

◆ post()

virtual void Kaskade::SymmetricPreconditioner< X, X >::post ( X & x)
inlinevirtualinherited

Preconditioner cleanup.

The provided default implementation does nothing.

Definition at line 231 of file symmetricOperators.hh.

◆ pre()

virtual void Kaskade::SymmetricPreconditioner< X, X >::pre ( X & ,
X &  )
inlinevirtualinherited

Preconditioner preparation.

The provided default implementation does nothing.

Definition at line 224 of file symmetricOperators.hh.

◆ requiresInitializedInput()

template<class X>
virtual bool Kaskade::IdentityPreconditioner< X >::requiresInitializedInput ( ) const
inlinevirtual

Returns true if the target vector x has to be initialized to zero before calling apply or applyDp.

Implements Kaskade::SymmetricPreconditioner< X, X >.

Definition at line 281 of file symmetricOperators.hh.


The documentation for this class was generated from the following file: