mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Add max_digits10 in NumTraits for mpreal types.
This commit is contained in:
parent
8e8c319087
commit
4e8e5e7409
@ -96,6 +96,10 @@ struct NumTraits<mpfr::mpreal> : GenericNumTraits<mpfr::mpreal> {
|
||||
}
|
||||
static inline int digits10(const Real& x) { return std::numeric_limits<Real>::digits10(x); }
|
||||
|
||||
static inline int max_digits10(long Precision = mpfr::mpreal::get_default_prec()) {
|
||||
return std::numeric_limits<Real>::max_digits10(Precision);
|
||||
}
|
||||
|
||||
static inline int digits() { return std::numeric_limits<Real>::digits(); }
|
||||
static inline int digits(const Real& x) { return std::numeric_limits<Real>::digits(x); }
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user