mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 16:41:50 +08:00
Make hypot_impl compile again for types with expression-templates (e.g., boost::multiprecision)
This commit is contained in:
parent
4662c610c1
commit
385d8b5e42
@ -90,7 +90,7 @@ struct hypot_impl
|
|||||||
static inline RealScalar run(const Scalar& x, const Scalar& y)
|
static inline RealScalar run(const Scalar& x, const Scalar& y)
|
||||||
{
|
{
|
||||||
EIGEN_USING_STD_MATH(abs);
|
EIGEN_USING_STD_MATH(abs);
|
||||||
return positive_real_hypot(abs(x), abs(y));
|
return positive_real_hypot<RealScalar>(abs(x), abs(y));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user