diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-07-17 21:08:20 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-07-17 21:08:20 +0200 |
commit | cda47c42c23035130488fd9a4437b2c1910d0bab (patch) | |
tree | 9a1bc1d6c34190e1fd3abd470db9690953f12a8a /Eigen/src/Core/MathFunctions.h | |
parent | a74b9ba7cda08b8fbcb187aa5e96f0e99cf9b684 (diff) |
Fix compilation in c++98 mode.
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index a906b7629..5ba5293a0 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -1378,13 +1378,14 @@ T acos(const T &x) { return acos(x); } - +#if EIGEN_HAS_CXX11_MATH template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T acosh(const T &x) { EIGEN_USING_STD_MATH(acosh); return acosh(x); } +#endif #if defined(__SYCL_DEVICE_ONLY__) EIGEN_ALWAYS_INLINE float acos(float x) { return cl::sycl::acos(x); } @@ -1408,12 +1409,14 @@ T asin(const T &x) { return asin(x); } +#if EIGEN_HAS_CXX11_MATH template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T asinh(const T &x) { EIGEN_USING_STD_MATH(asinh); return asinh(x); } +#endif #if defined(__SYCL_DEVICE_ONLY__) EIGEN_ALWAYS_INLINE float asin(float x) { return cl::sycl::asin(x); } @@ -1437,12 +1440,14 @@ T atan(const T &x) { return atan(x); } +#if EIGEN_HAS_CXX11_MATH template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T atanh(const T &x) { EIGEN_USING_STD_MATH(atanh); return atanh(x); } +#endif #if defined(__SYCL_DEVICE_ONLY__) EIGEN_ALWAYS_INLINE float atan(float x) { return cl::sycl::atan(x); } |