From bf91a44f4ac8b82af79fc9a302f155f8beb3ca2d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 21 Jul 2016 15:48:24 +0200 Subject: [PATCH] Use ADL and log10 for printing matrices. --- Eigen/src/Core/IO.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index 2198f5668..8c794837f 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -131,7 +131,9 @@ struct significant_decimals_default_impl typedef typename NumTraits::Real RealScalar; static inline int run() { - return cast(numext::ceil(-numext::log(NumTraits::epsilon())/numext::log(RealScalar(10)))); + using std::ceil; + using std::log10; + return cast(ceil(-log10(NumTraits::epsilon()))); } };