diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-09-27 13:56:04 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-09-27 13:56:04 -0700 |
commit | 13ef08e5ac96e474ce40031b868b2f7625014573 (patch) | |
tree | 470748b41e3bb18c47e55377403c4276241eb354 /Eigen/src/Core/MathFunctions.h | |
parent | 7c8bc0d9288f5152cf871dd2824a772a6003801b (diff) |
Move implementation of vectorized error function erf() to SpecialFunctionsImpl.h.
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 950ebec43..f1feab508 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -891,7 +891,6 @@ template<typename T> EIGEN_DEVICE_FUNC bool isnan_impl(const std::complex<T>& x) template<typename T> EIGEN_DEVICE_FUNC bool isinf_impl(const std::complex<T>& x); template<typename T> T generic_fast_tanh_float(const T& a_x); -template<typename T> T generic_fast_erf_float(const T& a_x); } // end namespace internal /**************************************************************************** @@ -1579,36 +1578,6 @@ 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 -float erf(float x) { return internal::generic_fast_erf_float(x); } -#endif - -#if defined(SYCL_DEVICE_ONLY) -SYCL_SPECIALIZE_FLOATING_TYPES_UNARY(erf, erf) -#endif - -#if !EIGEN_HAS_CXX11 || defined(EIGEN_GPUCC) -template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE -float erf(const float &x) { return ::erff(x); } - -template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE -double erf(const double &x) { return ::erf(x); } -#endif - template <typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T fmod(const T& a, const T& b) { |