Add numext::isnan for AnnoyingOrange^H^H^H^H^H^HScalar.

This commit is contained in:
Rasmus Munk Larsen 2023-03-13 21:19:35 +00:00
parent 79de101d23
commit 8fe6190001

View File

@ -140,6 +140,11 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
bool (isfinite)(const AnnoyingScalar& x) { bool (isfinite)(const AnnoyingScalar& x) {
return (numext::isfinite)(*x.v); return (numext::isfinite)(*x.v);
} }
template<>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
bool (isnan)(const AnnoyingScalar& x) {
return (numext::isnan)(*x.v);
}
} }
namespace internal { namespace internal {