diff --git a/Eigen/src/Core/BooleanRedux.h b/Eigen/src/Core/BooleanRedux.h index ccf519067c6..f6fa2733912 100644 --- a/Eigen/src/Core/BooleanRedux.h +++ b/Eigen/src/Core/BooleanRedux.h @@ -134,7 +134,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(); @@ -148,7 +148,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();