Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <block_monitor.h>
Public Types | |
typedef norm_type< ValueType > ::type | Real |
Public Member Functions | |
template<typename MV > | |
default_block_monitor (const MV &b, size_t iteration_limit=500, Real absolute_tolerance=1e-6, Real relative_tolerance=1e-6, bool verbose=true) | |
void | operator++ (void) |
template<typename MV > | |
bool | finished (const MV &r) |
template<typename MV > | |
bool | converged (MV &r) const |
size_t | iteration_count () const |
size_t | iteration_limit () const |
Real | relative_tolerance () const |
Real | absolute_tolerance () const |
Real | tolerance (int i) const |
Protected Attributes | |
Real | relative_tolerance_ |
Real | absolute_tolerance_ |
bool | verbose_ |
size_t | numRHS |
size_t | iteration_limit_ |
size_t | iteration_count_ |
cusp::array1d< ValueType, cusp::host_memory > | b_norm |
default_monitor
: Implements standard convergence criteria and reporting for iterative solvers.
ValueType | scalar type used in the solver (e.g. float or cusp::complex<double> ). |
verbose_monitor
Definition at line 54 of file block_monitor.h.
typedef norm_type<ValueType>::type cusp::default_block_monitor< ValueType >::Real |
Definition at line 57 of file block_monitor.h.
|
inline |
Construct a default_monitor
for a given right-hand-side b
The default_monitor
terminates iteration when the residual norm satisfies the condition ||b - A x|| <= absolute_tolerance + relative_tolerance * ||b|| or when the iteration limit is reached.
b | right-hand-side of the linear system A x = b |
iteration_limit | maximum number of solver iterations to allow |
relative_tolerance | determines convergence criteria |
absolute_tolerance | determines convergence criteria |
VectorType | vector |
Definition at line 74 of file block_monitor.h.
|
inline |
increment the iteration count
Definition at line 93 of file block_monitor.h.
|
inline |
applies convergence criteria to determine whether iteration is finished
r | residual vector of the linear system (r = b - A x) |
Vector | vector |
Definition at line 101 of file block_monitor.h.
|
inline |
whether the last tested residual satifies the convergence tolerance
Definition at line 151 of file block_monitor.h.
|
inline |
number of iterations
Definition at line 165 of file block_monitor.h.
|
inline |
maximum number of iterations
Definition at line 169 of file block_monitor.h.
|
inline |
relative tolerance
Definition at line 173 of file block_monitor.h.
|
inline |
absolute tolerance
Definition at line 177 of file block_monitor.h.
|
inline |
tolerance
Equal to absolute_tolerance() + relative_tolerance() * ||b||
Definition at line 184 of file block_monitor.h.
|
protected |
Definition at line 188 of file block_monitor.h.
|
protected |
Definition at line 189 of file block_monitor.h.
|
protected |
Definition at line 190 of file block_monitor.h.
|
protected |
Definition at line 191 of file block_monitor.h.
|
protected |
Definition at line 192 of file block_monitor.h.
|
protected |
Definition at line 193 of file block_monitor.h.
|
protected |
Definition at line 194 of file block_monitor.h.