From 1dd6a329e860abff4828da14884dddaa039ad45d Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Sat, 11 Jul 2015 19:40:15 +0200 Subject: Cuda compatibility: remove explicit call to std math functions --- Eigen/src/Core/Dot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/Dot.h') diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index 6228f71bd..94b058466 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -99,7 +99,7 @@ EIGEN_STRONG_INLINE typename NumTraits::Scala template inline typename NumTraits::Scalar>::Real MatrixBase::norm() const { - using std::sqrt; + EIGEN_USING_STD_MATH(sqrt) return sqrt(squaredNorm()); } @@ -141,7 +141,7 @@ struct lpNorm_selector EIGEN_DEVICE_FUNC static inline RealScalar run(const MatrixBase& m) { - using std::pow; + EIGEN_USING_STD_MATH(pow) return pow(m.cwiseAbs().array().pow(p).sum(), RealScalar(1)/p); } }; -- cgit v1.2.3