Re: [eigen] no matching function for call to 'abs(const float&)'

[ Thread Index | Date Index | More Archives ]

OK, replacing line 44 of Eigen/src/Core/functors/UnaryFunctors.h with:
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator()
(const Scalar& a) const { using std::fabs; return fabs(a); }

Will this work even if cmath hasn't been included at all?

Mail converted by MHonArc 2.6.19+