aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/GenericPacketMath.h
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-06-04 16:24:47 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-06-04 16:24:47 -0700
commitc2ab36f47a34e572f37e3dd556ac8a04ab769277 (patch)
treeb5cf8674e9375b6b9b98c2e5e90c96640421e672 /Eigen/src/Core/GenericPacketMath.h
parent537e2b322f8122126aee83c92c95ba8ab9061970 (diff)
Fix broken packetmath test for logistic on Arm.
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r--Eigen/src/Core/GenericPacketMath.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h
index adf431b4c..7f35b3114 100644
--- a/Eigen/src/Core/GenericPacketMath.h
+++ b/Eigen/src/Core/GenericPacketMath.h
@@ -524,7 +524,8 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline bool predux_any(const Packet&
// - bits full of ones (NaN 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.
- return bool(numext::not_equal_strict(predux(a), pzero(a)));
+ typedef typename unpacket_traits<Packet>::type Scalar;
+ return numext::not_equal_strict(predux(a), Scalar(0));
}
/** \internal \returns the reversed elements of \a a*/