Blaze 3.9
Public Types | List of all members
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
 ~NegativeAccuracy ()=default
 
Unary plus/minus operators
constexpr const NegativeAccuracyoperator+ () const
 Returns the negative computation accuracy for all floating point data types. More...
 
constexpr const PositiveType operator- () const
 Returns the positive computation accuracy 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
NegativeAccuracyoperator= (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 >
constexpr blaze::NegativeAccuracy< A >::operator const T
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 >
constexpr const NegativeAccuracy< A > & blaze::NegativeAccuracy< A >::operator+
constexpr

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

Returns
The negative computation accuracy.

◆ operator-()

template<typename A >
constexpr const NegativeAccuracy< A >::PositiveType blaze::NegativeAccuracy< A >::operator-
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: