diff options
author | 2015-08-07 19:27:59 +0200 | |
---|---|---|
committer | 2015-08-07 19:27:59 +0200 | |
commit | 6245591349bdf013bc421e6887d98164cdd15cd0 (patch) | |
tree | 0a29174809533948f4b6acf45de77272ba354dcf /Eigen/src/Core/arch/CUDA/PacketMath.h | |
parent | 60e4260d0d114f030f2425c4c5d681bc1afb3219 (diff) |
Fix prototype of plset and generalize linspace functor.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA/PacketMath.h')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/PacketMath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/CUDA/PacketMath.h b/Eigen/src/Core/arch/CUDA/PacketMath.h index 8b767a4e7..195debd0d 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMath.h +++ b/Eigen/src/Core/arch/CUDA/PacketMath.h @@ -76,10 +76,10 @@ template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double2 pset1<double2>(const do } -template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 plset<float>(const float& a) { +template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 plset<float4>(const float& a) { return make_float4(a, a+1, a+2, a+3); } -template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double2 plset<double>(const double& a) { +template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double2 plset<double2>(const double& a) { return make_double2(a, a+1); } |