From 6245591349bdf013bc421e6887d98164cdd15cd0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 7 Aug 2015 19:27:59 +0200 Subject: Fix prototype of plset and generalize linspace functor. --- Eigen/src/Core/arch/NEON/PacketMath.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/arch/NEON/PacketMath.h') diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index a72f91f21..fc4c0d03a 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -120,12 +120,12 @@ template<> struct unpacket_traits { typedef int type; enum {size=4, template<> EIGEN_STRONG_INLINE Packet4f pset1(const float& from) { return vdupq_n_f32(from); } template<> EIGEN_STRONG_INLINE Packet4i pset1(const int& from) { return vdupq_n_s32(from); } -template<> EIGEN_STRONG_INLINE Packet4f plset(const float& a) +template<> EIGEN_STRONG_INLINE Packet4f plset(const float& a) { Packet4f countdown = EIGEN_INIT_NEON_PACKET4(0, 1, 2, 3); return vaddq_f32(pset1(a), countdown); } -template<> EIGEN_STRONG_INLINE Packet4i plset(const int& a) +template<> EIGEN_STRONG_INLINE Packet4i plset(const int& a) { Packet4i countdown = EIGEN_INIT_NEON_PACKET4(0, 1, 2, 3); return vaddq_s32(pset1(a), countdown); @@ -574,7 +574,7 @@ template<> struct unpacket_traits { typedef double type; enum {size=2 template<> EIGEN_STRONG_INLINE Packet2d pset1(const double& from) { return vdupq_n_f64(from); } -template<> EIGEN_STRONG_INLINE Packet2d plset(const double& a) +template<> EIGEN_STRONG_INLINE Packet2d plset(const double& a) { Packet2d countdown = EIGEN_INIT_NEON_PACKET2(0, 1); return vaddq_f64(pset1(a), countdown); -- cgit v1.2.3