aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/CUDA
diff options
context:
space:
mode:
authorGravatar Srinivas Vasudevan <srvasude@gmail.com>2016-12-05 12:19:01 -0800
committerGravatar Srinivas Vasudevan <srvasude@gmail.com>2016-12-05 12:19:01 -0800
commitf7d7c33a28f1f0687eb7db312a67715a83c761ba (patch)
tree037016d8d9cdd96bc2e1cd457681ae5c3d390734 /Eigen/src/Core/arch/CUDA
parent09ee7f0c80fb586835f4fa77f9129080ea63406e (diff)
Fix expm1 CUDA implementation (do not shadow exp CUDA implementation).
Diffstat (limited to 'Eigen/src/Core/arch/CUDA')
-rw-r--r--Eigen/src/Core/arch/CUDA/MathFunctions.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Eigen/src/Core/arch/CUDA/MathFunctions.h b/Eigen/src/Core/arch/CUDA/MathFunctions.h
index 3548f2fa2..987a5291c 100644
--- a/Eigen/src/Core/arch/CUDA/MathFunctions.h
+++ b/Eigen/src/Core/arch/CUDA/MathFunctions.h
@@ -57,15 +57,14 @@ double2 pexp<double2>(const double2& a)
}
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
-float4 pexp<float4>(const float4& a)
+float4 pexpm1<float4>(const float4& a)
{
return make_float4(expm1f(a.x), expm1f(a.y), expm1f(a.z), expm1f(a.w));
}
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
-double2 pexp<double2>(const double2& a)
+double2 pexpm1<double2>(const double2& a)
{
- using ::expm1;
return make_double2(expm1(a.x), expm1(a.y));
}