Blaze 3.9
Loading...
Searching...
No Matches
blaze::NegativeAccuracy< A > Class Template Reference

Negative computation accuracy for floating point data types. More...

#include <Accuracy.h>

Public Types

using PositiveType = A
 The positive accuracy type.

Public Member Functions

Destructor
Unary plus/minus operators
constexpr const NegativeAccuracy & operator+ () const
 Returns the negative computation accuracy for all floating point data types.
constexpr const PositiveType operator- () const
 Returns the positive computation accuracy 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
NegativeAccuracy & operator= (const NegativeAccuracy &)=delete
void * operator& () const =delete

Private Member Functions

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

Detailed Description

template<typename A>
class blaze::NegativeAccuracy< A >

Negative computation accuracy for floating point data types.

The NegativeAccuracy class is a wrapper class around the functionality of the blaze::Limits class. It represents the negative computation accuracy of the Blaze library for any floating point data type. In order to assign a negative accuracy value, the NegativeAccuracy class can be implicitly converted to the three built-in floating point data types float, double and long double.

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

Member Function Documentation

◆ operator const T()

template<typename A>
template<typename T>
blaze::NegativeAccuracy< A >::operator const T ( ) const
constexpr

Conversion operator to the required floating point data type.

The conversion operator returns the negative computation accuracy for the floating point data type T.

◆ operator+()

template<typename A>
const NegativeAccuracy< A > & blaze::NegativeAccuracy< A >::operator+ ( ) const
constexpr

Returns the negative computation accuracy for all floating point data types.

Returns
The negative computation accuracy.

◆ operator-()

template<typename A>
const NegativeAccuracy< A >::PositiveType blaze::NegativeAccuracy< A >::operator- ( ) const
constexpr

Returns the positive computation accuracy for all floating point data types.

Returns
The positive computation accuracy.

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