35 #ifndef _BLAZE_UTIL_LIMITS_H_ 36 #define _BLAZE_UTIL_LIMITS_H_ 105 template<
typename Type >
125 struct Limits<unsigned char>
161 struct Limits<signed char>
201 struct Limits<unsigned short>
237 struct Limits<unsigned int>
273 struct Limits<unsigned long>
365 static inline constexpr
float accuracy() {
return 1E-6F; }
369 static inline constexpr
float fpuAccuracy() {
return 1E-12F; }
397 static inline constexpr
double accuracy() {
return 1E-8; }
401 static inline constexpr
double fpuAccuracy() {
return 1E-15; }
413 struct Limits<long double>
429 static inline constexpr
long double accuracy() {
return 1E-10L; }
433 static inline constexpr
long double fpuAccuracy() {
return 1E-15L; }
Header file for basic type definitions.
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1762
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1809
constexpr Epsilon epsilon
Global Epsilon instance.The blaze::epsilon instance can be used wherever a floating point data type i...
Definition: Epsilon.h:901
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Numerical limits of built-in data types.The Limits class provides numerical limits for the following ...
Definition: Limits.h:106
constexpr Infinity inf
Global Infinity instance.The blaze::inf instance can be used wherever a built-in data type is expecte...
Definition: Infinity.h:1073
constexpr Accuracy accuracy
Global Accuracy instance.The blaze::accuracy instance can be used wherever a floating point data type...
Definition: Accuracy.h:902