aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen
diff options
context:
space:
mode:
authorGravatar Simon Praetorius <simon.praetorius@tu-dresden.de>2017-03-24 17:45:56 +0100
committerGravatar Simon Praetorius <simon.praetorius@tu-dresden.de>2017-03-24 17:45:56 +0100
commit511810797e35471568091c44e947329f0060698e (patch)
treee08f7807d788df53365f9753b16f4569aee8548e /unsupported/Eigen
parentaae19c70ac273a2d40daf18a3cd15c0b0075662b (diff)
Issue with mpreal and std::numeric_limits, i.e. digits is not a constant. Added a digits() traits in NumTraits with fallback to static constant. Specialization for mpreal added in MPRealSupport.
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r--unsupported/Eigen/MPRealSupport3
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/MPRealSupport b/unsupported/Eigen/MPRealSupport
index 7f0b70c63..b770abc4a 100644
--- a/unsupported/Eigen/MPRealSupport
+++ b/unsupported/Eigen/MPRealSupport
@@ -90,6 +90,9 @@ int main()
#ifdef MPREAL_HAVE_DYNAMIC_STD_NUMERIC_LIMITS
static inline int digits10 (long Precision = mpfr::mpreal::get_default_prec()) { return std::numeric_limits<Real>::digits10(Precision); }
static inline int digits10 (const Real& x) { return std::numeric_limits<Real>::digits10(x); }
+
+ 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
static inline Real dummy_precision()