From df4bc2731c00f9e0556f9d25545b9797cf6cc277 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 17 Mar 2021 03:06:08 +0100 Subject: Revert "Augment NumTraits with min/max_exponent()." This reverts commit 75ce9cd2a7aefaaea8543e2db14ce4dc149eeb03. --- Eigen/src/Core/NumTraits.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'Eigen/src/Core/NumTraits.h') diff --git a/Eigen/src/Core/NumTraits.h b/Eigen/src/Core/NumTraits.h index aa7b66f02..609e11402 100644 --- a/Eigen/src/Core/NumTraits.h +++ b/Eigen/src/Core/NumTraits.h @@ -135,18 +135,9 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Tgt bit_cast(const Src& src) { * \li A dummy_precision() function returning a weak epsilon value. It is mainly used as a default * value by the fuzzy comparison operators. * \li highest() and lowest() functions returning the highest and lowest possible values respectively. - * \li digits() function returning the number of radix digits (non-sign digits for integers, mantissa for floating-point). This is - * the analogue of std::numeric_limits::digits - * which is used as the default implementation if specialized. * \li digits10() function returning the number of decimal digits that can be represented without change. This is * the analogue of std::numeric_limits::digits10 * which is used as the default implementation if specialized. - * \li min_exponent() and max_exponent() functions returning the highest and lowest possible values, respectively, - * such that the radix raised to the power exponent-1 is a normalized floating-point number. These are equivalent to - * std::numeric_limits::min_exponent/ - * std::numeric_limits::max_exponent. - * \li infinity() function returning a representation of positive infinity, if available. - * \li quiet_NaN function returning a non-signaling "not-a-number", if available. */ template struct GenericNumTraits @@ -187,18 +178,6 @@ template struct GenericNumTraits { return internal::default_digits_impl::run(); } - - EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR - static inline int min_exponent() - { - return numext::numeric_limits::min_exponent; - } - - EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR - static inline int max_exponent() - { - return numext::numeric_limits::max_exponent; - } EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR static inline Real dummy_precision() @@ -207,6 +186,7 @@ template struct GenericNumTraits return Real(0); } + EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR static inline T highest() { return (numext::numeric_limits::max)(); -- cgit v1.2.3