![]() |
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 | |
| RelativeVariation (Real tolerance=1e-12, std::string const &name="") | |
| Maximum variation from one step to the next. More... | |
| RelativeVariation (RelativeVariation const &c) | |
| Copy constructor. More... | |
| template<typename T > | |
| bool | operator() (Eigen::MatrixBase< T > const &input) |
| True if object has changed by less than tolerance. More... | |
| template<typename T > | |
| bool | operator() (Eigen::ArrayBase< T > const &input) |
| True if object has changed by less than tolerance. More... | |
| Real | tolerance () const |
| Allowed variation. More... | |
| RelativeVariation & | tolerance (Real &e) const |
| Allowed variation. More... | |
| std::string const & | name () const |
| Name that gets interpolated into the log's output. More... | |
| RelativeVariation const & | name (std::string const &name) |
Definition at line 13 of file relative_variation.h.
| using sopt::RelativeVariation< TYPE >::Real = typename real_type<Scalar>::type |
Underlying scalar type.
Definition at line 18 of file relative_variation.h.
| using sopt::RelativeVariation< TYPE >::Scalar = TYPE |
Underlying scalar type.
Definition at line 16 of file relative_variation.h.
|
inline |
Maximum variation from one step to the next.
Definition at line 20 of file relative_variation.h.
|
inline |
Copy constructor.
Definition at line 23 of file relative_variation.h.
|
inline |
Name that gets interpolated into the log's output.
Definition at line 42 of file relative_variation.h.
Referenced by sopt::RelativeVariation< TYPE >::name().
|
inline |
Definition at line 43 of file relative_variation.h.
References sopt::RelativeVariation< TYPE >::name().
| bool sopt::RelativeVariation< SCALAR >::operator() | ( | Eigen::ArrayBase< T > const & | input | ) |
True if object has changed by less than tolerance.
Definition at line 112 of file relative_variation.h.
References SOPT_LOW_LOG.
|
inline |
True if object has changed by less than tolerance.
Definition at line 28 of file relative_variation.h.
|
inline |
|
inline |
Allowed variation.
Definition at line 37 of file relative_variation.h.