10 #ifndef EIGEN_NUMTRAITS_H 11 #define EIGEN_NUMTRAITS_H 20 bool use_numeric_limits = std::numeric_limits<T>::is_specialized,
24 static int run() {
return std::numeric_limits<T>::digits10; }
41 static int run() {
return 0; }
91 IsInteger = std::numeric_limits<T>::is_integer,
92 IsSigned = std::numeric_limits<T>::is_signed,
112 return numext::numeric_limits<T>::epsilon();
116 static inline int digits10()
122 static inline Real dummy_precision()
130 static inline T highest() {
135 static inline T lowest() {
140 static inline T infinity() {
141 return numext::numeric_limits<T>::infinity();
145 static inline T quiet_NaN() {
146 return numext::numeric_limits<T>::quiet_NaN();
193 template<
typename Scalar,
int Rows,
int Cols,
int Options,
int MaxRows,
int MaxCols>
208 RequireInitialization = 1,
226 RequireInitialization = 1,
235 static inline std::string
epsilon();
236 static inline std::string dummy_precision();
237 static inline std::string lowest();
238 static inline std::string highest();
239 static inline std::string infinity();
240 static inline std::string quiet_NaN();
248 #endif // EIGEN_NUMTRAITS_H NumTraits< Scalar >::NonInteger NonIntegerScalar
static EIGEN_DEVICE_FUNC Real dummy_precision()
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static EIGEN_DEVICE_FUNC double dummy_precision()
NumTraits< _Real >::Literal Literal
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half() max(const half &a, const half &b)
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
Array< Scalar, Rows, Cols, Options, MaxRows, MaxCols > ArrayType
static EIGEN_DEVICE_FUNC Real epsilon()
NumTraits< Scalar >::Real RealScalar
static EIGEN_DEVICE_FUNC RealScalar epsilon()
static long double dummy_precision()
static EIGEN_DEVICE_FUNC RealScalar dummy_precision()
General-purpose arrays with easy API for coefficient-wise operations.
Array< NonIntegerScalar, Rows, Cols, Options, MaxRows, MaxCols > NonInteger
static EIGEN_DEVICE_FUNC float dummy_precision()
EIGEN_DEVICE_FUNC const Log10ReturnType log10() const
NumTraits< Scalar >::Literal Literal
Array< RealScalar, Rows, Cols, Options, MaxRows, MaxCols > Real
static EIGEN_DEVICE_FUNC int digits10()