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>
181 struct Limits<wchar_t>
201 struct Limits<unsigned short>
237 struct Limits<unsigned int>
273 struct Limits<unsigned long>
310 struct Limits<std::size_t>
328 struct Limits<ptrdiff_t>
365 static inline float accuracy() {
return 1E-6F; }
369 static inline float fpuAccuracy() {
return 1E-12F; }
381 struct Limits<double>
397 static inline double accuracy() {
return 1E-8; }
401 static inline double fpuAccuracy() {
return 1E-15; }
413 struct Limits<long double>
429 static inline long double accuracy() {
return 1E-10L; }
433 static inline long double fpuAccuracy() {
return 1E-15L; }
const MT::ElementType max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:994
const MT::ElementType min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:947
Numerical limits of built-in data types.The Limits class provides numerical limits for the following ...
Definition: Limits.h:106
const Infinity inf
Global Infinity instance.The blaze::inf instance can be used wherever a built-in data type is expecte...
Definition: Infinity.h:1098
const Accuracy accuracy
Global Accuracy instance.The blaze::accuracy instance can be used wherever a floating point data type...
Definition: Accuracy.h:901
const Epsilon epsilon
Global Epsilon instance.The blaze::epsilon instance can be used wherever a floating point data type i...
Definition: Epsilon.h:901
Header file for basic type definitions.