diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-04-13 19:01:37 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-04-13 19:01:37 +0200 |
commit | 4d392d93aaf35447dff7b4522dcf587e49a44b8f (patch) | |
tree | b7cde0aa384b19a295ae0ed8c67d1a86565bd58c /Eigen/src/Core/MathFunctionsImpl.h | |
parent | 072e111ec08be523f8bf5b4c742b5cbcb8ea0983 (diff) |
Make hypot_impl compile again for types with expression-templates (e.g., boost::multiprecision)
Diffstat (limited to 'Eigen/src/Core/MathFunctionsImpl.h')
-rw-r--r-- | Eigen/src/Core/MathFunctionsImpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/MathFunctionsImpl.h b/Eigen/src/Core/MathFunctionsImpl.h index cc2ac0700..28737c15e 100644 --- a/Eigen/src/Core/MathFunctionsImpl.h +++ b/Eigen/src/Core/MathFunctionsImpl.h @@ -85,7 +85,7 @@ struct hypot_impl static inline RealScalar run(const Scalar& x, const Scalar& y) { EIGEN_USING_STD_MATH(abs); - return positive_real_hypot(abs(x), abs(y)); + return positive_real_hypot<RealScalar>(abs(x), abs(y)); } }; |