Fixed a bug in the handling of packets by the MeanReducer

This commit is contained in:
Benoit Steiner 2015-03-19 23:11:42 -07:00
parent 9ee62fdcd5
commit e134226a03

View File

@ -77,7 +77,7 @@ template <typename T> struct MeanReducer
}
template <typename Packet>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T finalizeBoth(const T saccum, const Packet& vaccum) const {
return (saccum + predux(vaccum)) / (scalarCount_ + packetCount_ * packet_traits<Packet>::size);
return (saccum + predux(vaccum)) / (scalarCount_ + packetCount_ * unpacket_traits<Packet>::size);
}
protected: