isFinite(x) provides a reliable way to determine if x is a "normal" floating point number, meaning not a NaN or +/- Infinity.
More...
Functions |
bool | isFinite (const negator< float > &x) |
bool | isFinite (const negator< double > &x) |
bool | isFinite (const negator< long double > &x) |
template<class P > |
bool | isFinite (const negator< std::complex< P > > &x) |
template<class P > |
bool | isFinite (const negator< conjugate< P > > &x) |
bool | isFinite (const float &x) |
bool | isFinite (const double &x) |
bool | isFinite (const long double &x) |
template<class P > |
bool | isFinite (const std::complex< P > &x) |
template<class P > |
bool | isFinite (const conjugate< P > &x) |
Detailed Description
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.
Function Documentation
bool SimTK::isFinite |
( |
const conjugate< P > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const std::complex< P > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const long double & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const double & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const float & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const negator< conjugate< P > > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const negator< std::complex< P > > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const negator< long double > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const negator< double > & |
x |
) |
[inline] |
bool SimTK::isFinite |
( |
const negator< float > & |
x |
) |
[inline] |