mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use C++11 standard features for detecting presence of Inf and NaN
This commit is contained in:
@@ -65,7 +65,7 @@ class AnnoyingScalar
|
||||
|
||||
AnnoyingScalar operator-() const
|
||||
{ return AnnoyingScalar(-*v); }
|
||||
|
||||
|
||||
AnnoyingScalar operator-(const AnnoyingScalar& other) const
|
||||
{ return AnnoyingScalar(*v-*other.v); }
|
||||
|
||||
@@ -140,11 +140,6 @@ EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||
bool (isfinite)(const AnnoyingScalar& x) {
|
||||
return (numext::isfinite)(*x.v);
|
||||
}
|
||||
template<>
|
||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||
bool (isnan)(const AnnoyingScalar& x) {
|
||||
return (numext::isnan)(*x.v);
|
||||
}
|
||||
}
|
||||
|
||||
namespace internal {
|
||||
|
||||
Reference in New Issue
Block a user