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