isFinite(x) provides a reliable way to determine if x is a "normal" floating point number, meaning not a NaN or +/- Infinity.
More...
isFinite(x) provides a reliable way to determine if x is a "normal" floating point number, meaning not a NaN or +/- Infinity.
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, isFinite() returns true if the real and imaginary parts are both finite.
bool SimTK::isFinite |
( |
const negator< float > & |
x | ) |
|
|
inline |
bool SimTK::isFinite |
( |
const negator< double > & |
x | ) |
|
|
inline |
bool SimTK::isFinite |
( |
const negator< long double > & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isFinite |
( |
const negator< std::complex< P > > & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isFinite |
( |
const negator< conjugate< P > > & |
x | ) |
|
|
inline |
bool SimTK::isFinite |
( |
const float & |
x | ) |
|
|
inline |
bool SimTK::isFinite |
( |
const double & |
x | ) |
|
|
inline |
bool SimTK::isFinite |
( |
const long double & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isFinite |
( |
const std::complex< P > & |
x | ) |
|
|
inline |
template<class P >
bool SimTK::isFinite |
( |
const conjugate< P > & |
x | ) |
|
|
inline |