From 96e537d6fd1a7187feb853c1bdbdea69ee7b99ec Mon Sep 17 00:00:00 2001 From: Ali Can Demiralp Date: Sat, 27 Nov 2021 11:27:52 +0000 Subject: [PATCH] Add EIGEN_DEVICE_FUNC to DenseBase::hasNaN() and DenseBase::allFinite(). --- Eigen/src/Core/BooleanRedux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/BooleanRedux.h b/Eigen/src/Core/BooleanRedux.h index 9689ca312..78939a6e8 100644 --- a/Eigen/src/Core/BooleanRedux.h +++ b/Eigen/src/Core/BooleanRedux.h @@ -136,7 +136,7 @@ EIGEN_DEVICE_FUNC inline Eigen::Index DenseBase::count() const * \sa allFinite() */ template -inline bool DenseBase::hasNaN() const +EIGEN_DEVICE_FUNC inline bool DenseBase::hasNaN() const { #if EIGEN_COMP_MSVC || (defined __FAST_MATH__) return derived().array().isNaN().any(); @@ -150,7 +150,7 @@ inline bool DenseBase::hasNaN() const * \sa hasNaN() */ template -inline bool DenseBase::allFinite() const +EIGEN_DEVICE_FUNC inline bool DenseBase::allFinite() const { #if EIGEN_COMP_MSVC || (defined __FAST_MATH__) return derived().array().isFinite().all();