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();