diff options
author | tillahoffmann <tillahoffmann@gmail.com> | 2016-04-05 18:21:05 +0100 |
---|---|---|
committer | tillahoffmann <tillahoffmann@gmail.com> | 2016-04-05 18:21:05 +0100 |
commit | 726bd5f077342615404807fe986cd8ccc1177d62 (patch) | |
tree | 58eacde7b2df88d15ce1fcd94b09e027084385b9 /Eigen/src/Core/functors/UnaryFunctors.h | |
parent | a350c25a396aa4fdef4878d165bb3dbaedf0a4bb (diff) | |
parent | 4d7e230d2f8a55c45c1191fe08aa19d41e869a65 (diff) |
Merged eigen/eigen into default
Diffstat (limited to 'Eigen/src/Core/functors/UnaryFunctors.h')
-rw-r--r-- | Eigen/src/Core/functors/UnaryFunctors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index 826d84f69..26c02e4a7 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -41,7 +41,7 @@ struct functor_traits<scalar_opposite_op<Scalar> > template<typename Scalar> struct scalar_abs_op { EIGEN_EMPTY_STRUCT_CTOR(scalar_abs_op) typedef typename NumTraits<Scalar>::Real result_type; - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const Scalar& a) const { using std::abs; return abs(a); } + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const Scalar& a) const { return numext::abs(a); } template<typename Packet> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet packetOp(const Packet& a) const { return internal::pabs(a); } |