Simbody  3.7

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 SimTK::isFinite (const negator< float > &x)
 
bool SimTK::isFinite (const negator< double > &x)
 
template<class P >
bool SimTK::isFinite (const negator< std::complex< P > > &x)
 
template<class P >
bool SimTK::isFinite (const negator< conjugate< P > > &x)
 
bool SimTK::isFinite (const float &x)
 
bool SimTK::isFinite (const double &x)
 
template<class P >
bool SimTK::isFinite (const std::complex< P > &x)
 
template<class P >
bool SimTK::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

◆ 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]

template<class P >
bool SimTK::isFinite ( const negator< conjugate< P > > &  x)
inline

◆ 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