Rename isFinite to hasNonFinite to avoid future naming collisions.

(transplanted from 6fab4012a3
)
This commit is contained in:
Gael Guennebaud
2013-07-17 21:13:45 +02:00
parent c31606c88a
commit 9df04bcede
3 changed files with 9 additions and 9 deletions

View File

@@ -131,7 +131,7 @@ inline typename DenseBase<Derived>::Index DenseBase<Derived>::count() const
/** \returns true is \c *this contains at least one Not A Number (NaN).
*
* \sa isFinite()
* \sa hasNonFinite()
*/
template<typename Derived>
inline bool DenseBase<Derived>::hasNaN() const
@@ -144,7 +144,7 @@ inline bool DenseBase<Derived>::hasNaN() const
* \sa hasNaN()
*/
template<typename Derived>
inline bool DenseBase<Derived>::isFinite() const
inline bool DenseBase<Derived>::hasNonFinite() const
{
return !((derived()-derived()).hasNaN());
}

View File

@@ -348,7 +348,7 @@ template<typename Derived> class DenseBase
bool isOnes(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
inline bool hasNaN() const;
inline bool isFinite() const;
inline bool hasNonFinite() const;
inline Derived& operator*=(const Scalar& other);
inline Derived& operator/=(const Scalar& other);