Epsilon functor (test whether |x| < eps). More...
#include <mathkit.hpp>
Public Member Functions | |
Epsilon (double eps=1e-6) | |
Construct an Epsilon object. More... | |
bool | operator() (double val) const |
Test whether |val| < eps. More... | |
Epsilon functor (test whether |x| < eps).
Definition at line 74 of file mathkit.hpp.
|
inline |
Construct an Epsilon object.
eps | The threshold value. |
Definition at line 82 of file mathkit.hpp.
bool mathkit::Epsilon::operator() | ( | double | val) | const |
Test whether |val| < eps.
val | The value to test. |
Definition at line 16 of file mathkit.cpp.