Blaze 3.9
Public Types | List of all members
blaze::NegativeEpsilon< E > Class Template Reference

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
 ~NegativeEpsilon ()=default
 
Unary plus/minus operators
constexpr const NegativeEpsilonoperator+ () 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...
 
Forbidden operations
NegativeEpsilonoperator= (const NegativeEpsilon &)=delete
 
void * operator& () const =delete
 

Private Member Functions

Constructors
constexpr NegativeEpsilon ()
 The default constructor of the NegativeEpsilon class.
 
 NegativeEpsilon (const NegativeEpsilon &)=default
 

Detailed Description

template<typename E>
class blaze::NegativeEpsilon< E >

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.

Note
The NegativeEpsilon class is a helper class for the Epsilon class. It cannot be instantiated on its own, but can only be used by the Epsilon class.

Member Function Documentation

◆ operator const T()

template<typename E >
template<typename T >
constexpr blaze::NegativeEpsilon< E >::operator const T
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.

◆ operator+()

template<typename E >
constexpr const NegativeEpsilon< E > & blaze::NegativeEpsilon< E >::operator+
constexpr

Returns the negative epsilon value for all floating point data types.

Returns
The negative epsilon value.

◆ operator-()

template<typename E >
constexpr const NegativeEpsilon< E >::PositiveType blaze::NegativeEpsilon< E >::operator-
constexpr

Returns the positive epsilon value for all floating point data types.

Returns
The positive epsilon value.

The documentation for this class was generated from the following file: