diff --git a/Eigen/src/Core/arch/AVX512/PacketMath.h b/Eigen/src/Core/arch/AVX512/PacketMath.h index 596de0ce4..af3109a7b 100644 --- a/Eigen/src/Core/arch/AVX512/PacketMath.h +++ b/Eigen/src/Core/arch/AVX512/PacketMath.h @@ -136,14 +136,14 @@ EIGEN_STRONG_INLINE Packet8d pload1(const double* from) { } template <> -EIGEN_STRONG_INLINE Packet16f plset(const float& a) { +EIGEN_STRONG_INLINE Packet16f plset(const float& a) { return _mm512_add_ps( _mm512_set1_ps(a), _mm512_set_ps(15.0f, 14.0f, 13.0f, 12.0f, 11.0f, 10.0f, 9.0f, 8.0f, 7.0f, 6.0f, 5.0f, 4.0f, 3.0f, 2.0f, 1.0f, 0.0f)); } template <> -EIGEN_STRONG_INLINE Packet8d plset(const double& a) { +EIGEN_STRONG_INLINE Packet8d plset(const double& a) { return _mm512_add_pd(_mm512_set1_pd(a), _mm512_set_pd(7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0)); }