35 #ifndef _BLAZE_UTIL_LIMITS_H_ 36 #define _BLAZE_UTIL_LIMITS_H_ 106 template<
typename Type >
126 struct Limits<unsigned char>
162 struct Limits<signed char>
182 struct Limits<wchar_t>
202 struct Limits<unsigned short>
238 struct Limits<unsigned int>
274 struct Limits<unsigned long>
305 #if BLAZE_WIN64_PLATFORM 311 struct Limits<size_t>
323 #if BLAZE_WIN64_PLATFORM 329 struct Limits<ptrdiff_t>
366 static inline constexpr
float accuracy() {
return 1E-6F; }
370 static inline constexpr
float fpuAccuracy() {
return 1E-12F; }
382 struct Limits<double>
398 static inline constexpr
double accuracy() {
return 1E-8; }
402 static inline constexpr
double fpuAccuracy() {
return 1E-15; }
414 struct Limits<long double>
430 static inline constexpr
long double accuracy() {
return 1E-10L; }
434 static inline constexpr
long double fpuAccuracy() {
return 1E-15L; }
Header file for basic type definitions.
constexpr Epsilon epsilon
Global Epsilon instance.The blaze::epsilon instance can be used wherever a floating point data type i...
Definition: Epsilon.h:906
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
Numerical limits of built-in data types.The Limits class provides numerical limits for the following ...
Definition: Limits.h:107
constexpr Infinity inf
Global Infinity instance.The blaze::inf instance can be used wherever a built-in data type is expecte...
Definition: Infinity.h:1080
constexpr Accuracy accuracy
Global Accuracy instance.The blaze::accuracy instance can be used wherever a floating point data type...
Definition: Accuracy.h:907