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.
◆ isFinite() [1/8]
bool SimTK::isFinite |
( |
const negator< float > & |
x | ) |
|
|
inline |
◆ isFinite() [2/8]
bool SimTK::isFinite |
( |
const negator< double > & |
x | ) |
|
|
inline |
◆ isFinite() [3/8]
template<class P >
bool SimTK::isFinite |
( |
const negator< std::complex< P > > & |
x | ) |
|
|
inline |
◆ isFinite() [4/8]
◆ isFinite() [5/8]
bool SimTK::isFinite |
( |
const float & |
x | ) |
|
|
inline |
◆ isFinite() [6/8]
bool SimTK::isFinite |
( |
const double & |
x | ) |
|
|
inline |
◆ isFinite() [7/8]
template<class P >
bool SimTK::isFinite |
( |
const std::complex< P > & |
x | ) |
|
|
inline |
◆ isFinite() [8/8]
template<class P >
bool SimTK::isFinite |
( |
const conjugate< P > & |
x | ) |
|
|
inline |