![]() |
KASKADE 7 development version
|
PCG termination after a given number of iterations. More...
#include <cgTerminationCriteria.hh>
Public Types | |
| typedef R | Real |
| real field type | |
Public Member Functions | |
| PCGCountingTerminationCriterion (int n_) | |
| Constructor. | |
| virtual void | clear () |
| re-initializes the termination criterion for a new IterateType::CG run | |
| virtual PCGTerminationCriterion< R > & | tolerance (Real) |
| unused | |
| virtual void | step (Real) |
| supplies energy of step to the termination criterion | |
| virtual | operator bool () |
| termination decision | |
| virtual int | getMaxIterationSteps () |
| get the maximum number of allowed iteration steps | |
| virtual PCGTerminationCriterion< Real > & | tolerance (Real tol)=0 |
| set requested tolerance | |
| virtual void | step (Real gamma)=0 |
| supplies energy of step to the termination criterion | |
| virtual void | stepDetail (Real alpha, Real qAq, Real qPq, Real rPINVr) |
| supplies additional algorithmic quantities to the termination criterion | |
| virtual void | residual (Real sigma) |
| supplies the preconditioned residual to the termination criterion | |
| virtual bool | minimalDecreaseAchieved () |
| whether a minimal decrease has been achieved (used by hybrid CG) | |
PCG termination after a given number of iterations.
| R | a floating point type for real numbers |
Definition at line 112 of file cgTerminationCriteria.hh.
| typedef R Kaskade::PCGCountingTerminationCriterion< R >::Real |
real field type
Definition at line 118 of file cgTerminationCriteria.hh.
|
inline |
Constructor.
Definition at line 123 of file cgTerminationCriteria.hh.
|
inlinevirtual |
re-initializes the termination criterion for a new IterateType::CG run
Implements Kaskade::PCGTerminationCriterion< double >.
Definition at line 130 of file cgTerminationCriteria.hh.
|
inlinevirtual |
get the maximum number of allowed iteration steps
Implements Kaskade::PCGTerminationCriterion< double >.
Definition at line 163 of file cgTerminationCriteria.hh.
|
inlinevirtualinherited |
whether a minimal decrease has been achieved (used by hybrid CG)
Definition at line 100 of file cgTerminationCriteria.hh.
|
inlinevirtual |
termination decision
Implements Kaskade::PCGTerminationCriterion< double >.
Definition at line 155 of file cgTerminationCriteria.hh.
|
inlinevirtualinherited |
supplies the preconditioned residual to the termination criterion
| sigma | the preconditioned residual norm |
Definition at line 84 of file cgTerminationCriteria.hh.
|
inlinevirtual |
supplies energy of step to the termination criterion
Definition at line 146 of file cgTerminationCriteria.hh.
|
pure virtualinherited |
supplies energy of step to the termination criterion
| gamma | the energy \( \gamma = \alpha^2 q^T A q \) of the step \( \alpha q \). (Note: some implementations call this with \( \gamma^2 = \alpha \langle q, Aq \rangle \); the exact meaning is documented per implementation.) |
|
inlinevirtualinherited |
supplies additional algorithmic quantities to the termination criterion
The default implementation does nothing. Termination criteria that need more detailed information (e.g. the Strakos-Tichy \(P\)-criterion, which requires \( q^T A q \) and \( q^T P q \)) override this method.
| alpha | scaling for the conjugate search direction \( q \) |
| qAq | squared energy norm of the conjugate search direction \( q \) |
| qPq | squared \(P\)-norm, i. e. the norm induced by the preconditioner, of the conjugate search direction \( q \) |
| rPINVr | squared \(P^{-1}\)-norm of the residual |
Definition at line 78 of file cgTerminationCriteria.hh.
|
inlinevirtual |
unused
Definition at line 138 of file cgTerminationCriteria.hh.
|
pure virtualinherited |
set requested tolerance
| tol | the requested tolerance (nonnegative) |