Blaze 3.9
Loading...
Searching...
No Matches
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
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

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>
blaze::NegativeEpsilon< E >::operator const T ( ) const
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>
const NegativeEpsilon< E > & blaze::NegativeEpsilon< E >::operator+ ( ) const
constexpr

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

Returns
The negative epsilon value.

◆ operator-()

template<typename E>
const NegativeEpsilon< E >::PositiveType blaze::NegativeEpsilon< E >::operator- ( ) const
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: