mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Don't vectorize the MeanReducer unless pdiv is available.
This commit is contained in:
parent
5da960702f
commit
e289f44c56
@ -158,7 +158,8 @@ template <typename T, typename Device>
|
||||
struct reducer_traits<MeanReducer<T>, Device> {
|
||||
enum {
|
||||
Cost = NumTraits<T>::AddCost,
|
||||
PacketAccess = PacketType<T, Device>::HasAdd && !NumTraits<T>::IsInteger,
|
||||
PacketAccess = PacketType<T, Device>::HasAdd &&
|
||||
PacketType<T, Device>::HasDiv && !NumTraits<T>::IsInteger,
|
||||
IsStateful = true,
|
||||
IsExactlyAssociative = NumTraits<T>::IsInteger
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user