Go to the documentation of this file.
10 #ifndef EIGEN_NUMTRAITS_H
11 #define EIGEN_NUMTRAITS_H
20 bool use_numeric_limits = std::numeric_limits<T>::is_specialized,
25 static int run() {
return std::numeric_limits<T>::digits10; }
44 static int run() {
return 0; }
51 bool use_numeric_limits = std::numeric_limits<T>::is_specialized,
56 static int run() {
return std::numeric_limits<T>::digits; }
75 static int run() {
return 0; }
84 template <
typename Tgt,
typename Src>
86 #if EIGEN_HAS_TYPE_TRAITS
90 THIS_TYPE_IS_NOT_SUPPORTED);
96 memcpy(&tgt, &src,
sizeof(Tgt));
180 static inline int digits10()
186 static inline int digits()
192 static inline int min_exponent()
194 return numext::numeric_limits<T>::min_exponent;
198 static inline int max_exponent()
200 return numext::numeric_limits<T>::max_exponent;
204 static inline Real dummy_precision()
211 static inline T highest() {
216 static inline T lowest() {
218 : static_cast<
T>(-(numext::numeric_limits<
T>::
max)());
222 static inline T infinity() {
223 return numext::numeric_limits<T>::infinity();
227 static inline T quiet_NaN() {
228 return numext::numeric_limits<T>::quiet_NaN();
276 template<
typename Scalar,
int Rows,
int Cols,
int Options,
int MaxRows,
int MaxCols>
320 static inline std::string
epsilon();
321 static inline std::string dummy_precision();
322 static inline std::string lowest();
323 static inline std::string highest();
324 static inline std::string infinity();
325 static inline std::string quiet_NaN();
335 #endif // EIGEN_NUMTRAITS_H
Array< RealScalar, Rows, Cols, Options, MaxRows, MaxCols > Real
#define EIGEN_DEVICE_FUNC
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR double dummy_precision()
Namespace containing all symbols from the Eigen library.
CleanedUpDerType< DerType >::type() max(const AutoDiffScalar< DerType > &x, const T &y)
#define EIGEN_USING_STD(FUNC)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR Real dummy_precision()
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
General-purpose arrays with easy API for coefficient-wise operations.
Eigen::Triplet< double > T
const EIGEN_DEVICE_FUNC LogReturnType log() const
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR RealScalar epsilon()
Array< Scalar, Rows, Cols, Options, MaxRows, MaxCols > ArrayType
NumTraits< Scalar >::Literal Literal
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Tgt bit_cast(const Src &src)
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
Array< NonIntegerScalar, Rows, Cols, Options, MaxRows, MaxCols > NonInteger
NumTraits< Scalar >::Real RealScalar
static const Line3 l(Rot3(), 1, 1)
#define EIGEN_STRONG_INLINE
static EIGEN_CONSTEXPR long double dummy_precision()
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
NumTraits< _Real >::Literal Literal
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
mp::number< mp::cpp_dec_float< 100 >, mp::et_on > Real
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int digits10()
const EIGEN_DEVICE_FUNC CeilReturnType ceil() const
NumTraits< Scalar >::NonInteger NonIntegerScalar
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR RealScalar dummy_precision()
static EIGEN_CONSTEXPR int digits10()
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR int run()
static EIGEN_CONSTEXPR int digits10()
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR float dummy_precision()
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
const EIGEN_DEVICE_FUNC Log10ReturnType log10() const
EIGEN_DEVICE_FUNC static EIGEN_CONSTEXPR Real epsilon()
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:24