|
Feellgood
|
#include <iter.h>
Public Member Functions | |
| iteration (const std::string name, T r, bool _noise, int _maxiter) | |
| void | reset (void) |
| std::string | infos (void) const |
| void | operator++ (int) |
| void | operator++ () |
| T | get_res () const |
| int | get_iteration () const |
| T | get_rhsnorm () const |
| void | set_rhsnorm (T r) |
| bool | converged () |
| bool | converged (T nr) |
| bool | finished (T nr) |
Public Attributes | |
| algebra::algoStatus | status |
| const T | resmax |
Protected Attributes | |
| T | rhsn |
| const int | maxiter |
| const bool | noise |
| int | nit |
| T | res |
| bool | written |
Private Member Functions | |
| std::string | str_status (void) const |
Private Attributes | |
| const std::string | solver_name |
monitor over the successive iterations if a value is converging or not
|
inline |
constructor
|
inline |
return the monitored algo has converged or not according to criteria fixed by right hand side norm rhsn
|
inline |
monitor the convergence through a number (the norm of a vector)
|
inline |
returns true if the algo has converged according the convergence criterias through a norm value nr
|
inline |
getter for number of iterations
|
inline |
getter for residu res
|
inline |
getter for the right hand side norm value
|
inline |
return a string aggregating the status of the monitored algorithm, the number of iterations and the residu
|
inline |
operator increment
|
inline |
increment of the number of iterations
|
inline |
reset all values to monitor a new algorithm exectution
|
inline |
setter for the right hand side norm
|
inlineprivate |
string version of the status
|
protected |
Max. number of iterations.
|
protected |
iteration number.
|
protected |
if true iterations are printed.
|
protected |
last computed residu.
| const T algebra::iteration< T >::resmax |
maximum tolerated residu.
|
protected |
Right hand side norm.
|
private |
monitored solver name
| algebra::algoStatus algebra::iteration< T >::status |
status of the monitored algorithm
|
protected |
true : info was written