From 7ccb623746ea36013689dbdf61f6ce50948e6c29 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 19 Jul 2018 13:15:40 +0200 Subject: bug #1569: fix Tensor::mean() on AVX with respective unit test. --- unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 0efcd6253..a9027e97d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -140,7 +140,7 @@ struct reducer_traits, Device> { template struct MeanReducer { - static const bool PacketAccess = packet_traits::HasAdd && !NumTraits::IsInteger; + static const bool PacketAccess = packet_traits::HasAdd && packet_traits::HasDiv && !NumTraits::IsInteger; static const bool IsStateful = true; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE -- cgit v1.2.3