![]() |
SOPT
Sparse OPTimisation
|
#include <relative_variation.h>
Public Types | |
using | Scalar = TYPE |
Underlying scalar type. More... | |
using | Real = typename real_type< Scalar >::type |
Underlying scalar type. More... | |
Public Member Functions | |
ScalarRelativeVariation (Real relative_tolerance=1e-12, Real absolute_tolerance=1e-12, std::string const &name="") | |
Maximum variation from one step to the next. More... | |
ScalarRelativeVariation (ScalarRelativeVariation const &c) | |
Copy constructor. More... | |
bool | operator() (Scalar const ¤t) |
True if object has changed by less than tolerance. More... | |
Real | relative_tolerance () const |
Allowed variation. More... | |
RelativeVariation< Scalar > & | relative_tolerance (Real &e) |
Allowed variation. More... | |
Real | absolute_tolerance () const |
Allowed variation. More... | |
RelativeVariation< Scalar > & | absolute_tolerance (Real &e) |
Allowed variation. More... | |
std::string const & | name () const |
Name that gets interpolated into the log's output. More... | |
ScalarRelativeVariation const & | name (std::string const &name) |
Scalar | previous () const |
Definition at line 55 of file relative_variation.h.
using sopt::ScalarRelativeVariation< TYPE >::Real = typename real_type<Scalar>::type |
Underlying scalar type.
Definition at line 60 of file relative_variation.h.
using sopt::ScalarRelativeVariation< TYPE >::Scalar = TYPE |
Underlying scalar type.
Definition at line 58 of file relative_variation.h.
|
inline |
Maximum variation from one step to the next.
Definition at line 62 of file relative_variation.h.
|
inline |
Copy constructor.
Definition at line 70 of file relative_variation.h.
|
inline |
Allowed variation.
Definition at line 86 of file relative_variation.h.
|
inline |
Allowed variation.
Definition at line 88 of file relative_variation.h.
|
inline |
Name that gets interpolated into the log's output.
Definition at line 94 of file relative_variation.h.
Referenced by sopt::ScalarRelativeVariation< TYPE >::name().
|
inline |
Definition at line 95 of file relative_variation.h.
References sopt::ScalarRelativeVariation< TYPE >::name().
bool sopt::ScalarRelativeVariation< SCALAR >::operator() | ( | Scalar const & | current | ) |
True if object has changed by less than tolerance.
Definition at line 124 of file relative_variation.h.
References sopt::gradient_operator::diff(), and SOPT_LOW_LOG.
|
inline |
Definition at line 100 of file relative_variation.h.
|
inline |
|
inline |
Allowed variation.
Definition at line 81 of file relative_variation.h.