|
Blaze 3.9
|
Negative epsilon value for floating point data types. More...
#include <Epsilon.h>
Public Types | |
| using | PositiveType = E |
| The positive epsilon type. | |
Public Member Functions | |
Destructor | |
Unary plus/minus operators | |
| constexpr const NegativeEpsilon & | operator+ () const |
| Returns the negative epsilon value for all floating point data types. | |
| constexpr const PositiveType | operator- () const |
| Returns the positive epsilon value for all floating point data types. | |
Conversion operator | |
| template<typename T> | |
| constexpr | operator const T () const |
| Conversion operator to the required floating point data type. | |
Forbidden operations | |
| NegativeEpsilon & | operator= (const NegativeEpsilon &)=delete |
| void * | operator& () const =delete |
Private Member Functions | |
Constructors | |
| constexpr | NegativeEpsilon () |
| The default constructor of the NegativeEpsilon class. | |
| NegativeEpsilon (const NegativeEpsilon &)=default | |
Negative epsilon value for floating point data types.
The NegativeEpsilon class is a wrapper class around the functionality of the blaze::Limits class. It represents the negative smallest difference between two values of any floating point data type. In order to assign a negative epsilon value, the Epsilon class can be implicitly converted to the three built-in floating point data types float, double and long double.
|
constexpr |
Conversion operator to the required floating point data type.
The conversion operator returns the negative epsilon value for the floating point data type T.
|
constexpr |
Returns the negative epsilon value for all floating point data types.
|
constexpr |
Returns the positive epsilon value for all floating point data types.