aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar David Tellenbach <david.tellenbach@me.com>2021-03-17 03:06:08 +0100
committerGravatar David Tellenbach <david.tellenbach@me.com>2021-03-17 03:06:08 +0100
commitdf4bc2731c00f9e0556f9d25545b9797cf6cc277 (patch)
tree8ea98bb991c4cff4ad297988f9f32fc42b86a0be /bench
parent75ce9cd2a7aefaaea8543e2db14ce4dc149eeb03 (diff)
Revert "Augment NumTraits with min/max_exponent()."
Diffstat (limited to 'bench')
-rw-r--r--bench/bench_norm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bench/bench_norm.cpp b/bench/bench_norm.cpp
index 592f25d66..a86153945 100644
--- a/bench/bench_norm.cpp
+++ b/bench/bench_norm.cpp
@@ -111,12 +111,12 @@ EIGEN_DONT_INLINE typename T::Scalar pblueNorm(const T& v)
int nbig, ibeta, it, iemin, iemax, iexp;
Scalar abig, eps;
- nbig = NumTraits<int>::highest(); // largest integer
- ibeta = std::numeric_limits<Scalar>::radix; // NumTraits<Scalar>::Base; // base for floating-point numbers
- it = NumTraits<Scalar>::digits(); // NumTraits<Scalar>::Mantissa; // number of base-beta digits in mantissa
- iemin = NumTraits<Scalar>::min_exponent(); // minimum exponent
- iemax = NumTraits<Scalar>::max_exponent(); // maximum exponent
- rbig = NumTraits<Scalar>::highest(); // largest floating-point number
+ nbig = std::numeric_limits<int>::max(); // largest integer
+ ibeta = std::numeric_limits<Scalar>::radix; //NumTraits<Scalar>::Base; // base for floating-point numbers
+ it = std::numeric_limits<Scalar>::digits; //NumTraits<Scalar>::Mantissa; // number of base-beta digits in mantissa
+ iemin = std::numeric_limits<Scalar>::min_exponent; // minimum exponent
+ iemax = std::numeric_limits<Scalar>::max_exponent; // maximum exponent
+ rbig = std::numeric_limits<Scalar>::max(); // largest floating-point number
// Check the basic machine-dependent constants.
if(iemin > 1 - 2*it || 1+it>iemax || (it==2 && ibeta<5)