RE: [eigen] no matching function for call to 'abs(const float&)' |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
On Thu, 27 Aug 2015, Nuno Marques wrote:
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); } To the dev team: is this to be considered as a fix and maybe pushed to the main repo?
No, that would break some other types. Please try to investigate why it isn't working with 'abs' for you.
-- Marc Glisse
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |