Don't attempt to vectorize mean reductions of integers since we can't use

SSE or AVX instructions to divide 2 integers.
This commit is contained in:
Benoit Steiner 2015-12-22 17:51:55 -08:00
parent a1e08fb2a5
commit bdcbc66a5c

View File

@ -93,7 +93,7 @@ template <typename T> struct SumReducer
template <typename T> struct MeanReducer template <typename T> struct MeanReducer
{ {
static const bool PacketAccess = true; static const bool PacketAccess = !NumTraits<T>::IsInteger;
static const bool IsStateful = true; static const bool IsStateful = true;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE