From 2419632cf553ae73d2324f0e8044526cd45cf278 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 9 Mar 2023 21:50:43 +0000 Subject: [PATCH] Revert change to allFinite(), since the new version does not work for complex numbers. --- Eigen/src/Core/Visitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index 2f83ba878..4e9a85e80 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -823,7 +823,7 @@ EIGEN_DEVICE_FUNC inline bool DenseBase::hasNaN() const { */ template EIGEN_DEVICE_FUNC inline bool DenseBase::allFinite() const { - return derived().cwiseAbs().cwiseTypedLesser(NumTraits::infinity()).all(); + return derived().array().isFinite().all(); } } // end namespace Eigen