Controls the iterations of the iterative solvers. More...
#include <IterationController.h>
Public Member Functions | |
bool | converged () const |
template<typename VectorType > | |
bool | converged (const VectorType &v) |
bool | converged (double nr) |
template<typename VectorType > | |
bool | finished (const MatrixBase< VectorType > &v) |
bool | finished (double nr) |
bool | first () |
void | init () |
size_t | iteration () const |
IterationController (double r=1.0E-8, int noi=0, size_t mit=size_t(-1)) | |
size_t | maxIterarions () const |
double | maxResidual () const |
int | noiseLevel () const |
void | operator++ () |
void | operator++ (int) |
void | reduceNoiseLevel () |
double | residual () const |
double | rhsNorm () const |
void | setCallback (void(*t)(const IterationController &)) |
void | setIteration (size_t i) |
void | setMaxIterations (size_t i) |
void | setMaxResidual (double r) |
void | setNoiseLevel (int n) |
void | setRhsNorm (double r) |
Protected Attributes | |
void(* | m_callback )(const IterationController &) |
size_t | m_maxiter |
Max. number of iterations. More... | |
size_t | m_nit |
iteration number More... | |
int | m_noise |
if noise > 0 iterations are printed More... | |
double | m_res |
last computed residual More... | |
double | m_resadd |
double | m_resmax |
maximum residual More... | |
double | m_resminreach |
double | m_rhsn |
Right hand side norm. More... | |
bool | m_written |
Controls the iterations of the iterative solvers.
This class has been adapted from the iteration class of GMM++ and ITL libraries.
Definition at line 71 of file IterationController.h.
|
inline |
Definition at line 92 of file IterationController.h.
|
inline |
Definition at line 125 of file IterationController.h.
|
inline |
Definition at line 133 of file IterationController.h.
|
inline |
Definition at line 126 of file IterationController.h.
|
inline |
Definition at line 147 of file IterationController.h.
|
inline |
Definition at line 136 of file IterationController.h.
|
inline |
Definition at line 98 of file IterationController.h.
|
inline |
Definition at line 85 of file IterationController.h.
|
inline |
Definition at line 116 of file IterationController.h.
|
inline |
Definition at line 119 of file IterationController.h.
|
inline |
Definition at line 105 of file IterationController.h.
|
inline |
Definition at line 101 of file IterationController.h.
|
inline |
Definition at line 96 of file IterationController.h.
|
inline |
Definition at line 95 of file IterationController.h.
|
inline |
Definition at line 103 of file IterationController.h.
|
inline |
Definition at line 108 of file IterationController.h.
|
inline |
Definition at line 122 of file IterationController.h.
|
inline |
Definition at line 111 of file IterationController.h.
|
inline |
Definition at line 117 of file IterationController.h.
|
inline |
Definition at line 120 of file IterationController.h.
|
inline |
Definition at line 106 of file IterationController.h.
|
inline |
Definition at line 102 of file IterationController.h.
|
inline |
Definition at line 123 of file IterationController.h.
|
protected |
Definition at line 82 of file IterationController.h.
|
protected |
Max. number of iterations.
Definition at line 75 of file IterationController.h.
|
protected |
iteration number
Definition at line 79 of file IterationController.h.
|
protected |
if noise > 0 iterations are printed
Definition at line 76 of file IterationController.h.
|
protected |
last computed residual
Definition at line 80 of file IterationController.h.
|
protected |
Definition at line 78 of file IterationController.h.
|
protected |
maximum residual
Definition at line 77 of file IterationController.h.
|
protected |
Definition at line 78 of file IterationController.h.
|
protected |
Right hand side norm.
Definition at line 74 of file IterationController.h.
|
protected |
Definition at line 81 of file IterationController.h.