aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MathFunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r--Eigen/src/Core/MathFunctions.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h
index 1eeb2752b..fcf62011e 100644
--- a/Eigen/src/Core/MathFunctions.h
+++ b/Eigen/src/Core/MathFunctions.h
@@ -550,9 +550,8 @@ namespace std_fallback {
EIGEN_USING_STD_MATH(log);
Scalar x1p = RealScalar(1) + x;
Scalar log_1p = log(x1p);
- const bool is_inf = numext::equal_strict(x1p, log_1p);
const bool is_small = numext::equal_strict(x1p, Scalar(1));
- return (is_inf || is_small) ? x : x * (log_1p / (x1p - RealScalar(1)));
+ return is_small ? x : x * (log_1p / (x1p - RealScalar(1)));
}
}