![]() |
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. More...
#include <Epsilon.h>
Public Types | |
using | PositiveType = E |
The positive epsilon type. | |
Public Member Functions | |
Unary plus/minus operators | |
constexpr const NegativeEpsilon & | operator+ () const |
Returns the negative epsilon value for all floating point data types. More... | |
constexpr const PositiveType | operator- () const |
Returns the positive epsilon value for all floating point data types. More... | |
Conversion operator | |
template<typename T > | |
constexpr | operator const T () const |
Conversion operator to the required floating point data type. More... | |
Private Member Functions | |
Constructor | |
constexpr | NegativeEpsilon () |
The default constructor of the NegativeEpsilon class. | |
Forbidden operations | |
NegativeEpsilon & | operator= (const NegativeEpsilon &) |
Copy assignment operator (private & undefined) | |
void * | operator & () const |
Address operator (private & undefined) | |
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.
|
inline |
Conversion operator to the required floating point data type.
The conversion operator returns the negative epsilon value for the floating point data type T.
|
inline |
Returns the negative epsilon value for all floating point data types.
|
inline |
Returns the positive epsilon value for all floating point data types.