diff options
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 0d50fcd52..950ebec43 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -1579,12 +1579,18 @@ template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE double tanh(const double &x) { return ::tanh(x); } #endif +#if EIGEN_HAS_CXX11 template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T erf(const T &x) { EIGEN_USING_STD_MATH(erf); return erf(x); } +#else +template<typename T> +EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE +T erf(const T& x); +#endif #if (!defined(EIGEN_GPUCC)) && EIGEN_FAST_MATH && !defined(SYCL_DEVICE_ONLY) EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE |