isInf(x) provides a reliable way to determine if x is one of the two infinities (either negative or positive).
More...
isInf(x) provides a reliable way to determine if x is one of the two infinities (either negative or positive).
This routine is specialized for all SimTK scalar types: float, double std::complex<P>, SimTK::conjugate<P>, and SimTK::negator<T>, where T is any of the above. For complex and conjugate types, isInf() returns true if both components are infinite, or one is infinite and the other finite. That is, isInf() will never return true if one component is NaN.
bool SimTK::isInf |
( |
const negator< float > & |
x | ) |
|
|
inline |
bool SimTK::isInf |
( |
const negator< double > & |
x | ) |
|
|
inline |
bool SimTK::isInf |
( |
const negator< long double > & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isInf |
( |
const negator< std::complex< P > > & |
x | ) |
|
|
inline |
bool SimTK::isInf |
( |
const float & |
x | ) |
|
|
inline |
bool SimTK::isInf |
( |
const double & |
x | ) |
|
|
inline |
bool SimTK::isInf |
( |
const long double & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isInf |
( |
const std::complex< P > & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isInf |
( |
const conjugate< P > & |
x | ) |
|
|
inline |