Fix typo in previous update to generic predux_any.

This commit is contained in:
Rasmus Munk Larsen 2020-06-04 22:25:05 +00:00
parent fdc1cbdce3
commit 537e2b322f

View File

@ -524,7 +524,7 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline bool predux_any(const Packet&
// - bits full of ones (NaN for floats), // - bits full of ones (NaN for floats),
// - or first bit equals to 1 (1 for ints, smallest denormal for floats). // - or first bit equals to 1 (1 for ints, smallest denormal for floats).
// For all these cases, taking the sum is just fine, and this boils down to a no-op for scalars. // For all these cases, taking the sum is just fine, and this boils down to a no-op for scalars.
return bool(numext::not_equal_strict(a, pzero(a))); return bool(numext::not_equal_strict(predux(a), pzero(a)));
} }
/** \internal \returns the reversed elements of \a a*/ /** \internal \returns the reversed elements of \a a*/