diff options
author | David Tellenbach <david.tellenbach@me.com> | 2021-03-17 03:06:08 +0100 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2021-03-17 03:06:08 +0100 |
commit | df4bc2731c00f9e0556f9d25545b9797cf6cc277 (patch) | |
tree | 8ea98bb991c4cff4ad297988f9f32fc42b86a0be /Eigen/src/Core/StableNorm.h | |
parent | 75ce9cd2a7aefaaea8543e2db14ce4dc149eeb03 (diff) |
Revert "Augment NumTraits with min/max_exponent()."
This reverts commit 75ce9cd2a7aefaaea8543e2db14ce4dc149eeb03.
Diffstat (limited to 'Eigen/src/Core/StableNorm.h')
-rw-r--r-- | Eigen/src/Core/StableNorm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index 4a3f0cca8..04fe0b371 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -134,9 +134,9 @@ blueNorm_impl(const EigenBase<Derived>& _vec) // statements can be replaced static const int ibeta = std::numeric_limits<RealScalar>::radix; // base for floating-point numbers static const int it = NumTraits<RealScalar>::digits(); // number of base-beta digits in mantissa - static const int iemin = NumTraits<RealScalar>::min_exponent(); // minimum exponent - static const int iemax = NumTraits<RealScalar>::max_exponent(); // maximum exponent - static const RealScalar rbig = NumTraits<RealScalar>::highest(); // largest floating-point number + static const int iemin = std::numeric_limits<RealScalar>::min_exponent; // minimum exponent + static const int iemax = std::numeric_limits<RealScalar>::max_exponent; // maximum exponent + static const RealScalar rbig = (std::numeric_limits<RealScalar>::max)(); // largest floating-point number static const RealScalar b1 = RealScalar(pow(RealScalar(ibeta),RealScalar(-((1-iemin)/2)))); // lower boundary of midrange static const RealScalar b2 = RealScalar(pow(RealScalar(ibeta),RealScalar((iemax + 1 - it)/2))); // upper boundary of midrange static const RealScalar s1m = RealScalar(pow(RealScalar(ibeta),RealScalar((2-iemin)/2))); // scaling factor for lower range |