Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

isInf(x) provides a reliable way to determine if x is one of the two infinities (either negative or positive). More...

Functions

bool SimTK::isInf (const negator< float > &x)
 
bool SimTK::isInf (const negator< double > &x)
 
bool SimTK::isInf (const negator< long double > &x)
 
template<class P >
bool SimTK::isInf (const negator< std::complex< P > > &x)
 
template<class P >
bool SimTK::isInf (const negator< conjugate< P > > &x)
 
bool SimTK::isInf (const float &x)
 
bool SimTK::isInf (const double &x)
 
bool SimTK::isInf (const long double &x)
 
template<class P >
bool SimTK::isInf (const std::complex< P > &x)
 
template<class P >
bool SimTK::isInf (const conjugate< P > &x)
 

Detailed Description

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.

Function Documentation

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
template<class P >
bool SimTK::isInf ( const negator< conjugate< 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