isInf()
[Scalar Functions]

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

Functions

bool isInf (const negator< float > &x)
bool isInf (const negator< double > &x)
bool isInf (const negator< long double > &x)
template<class P >
bool isInf (const negator< std::complex< P > > &x)
template<class P >
bool isInf (const negator< conjugate< P > > &x)
bool isInf (const float &x)
bool isInf (const double &x)
bool isInf (const long double &x)
template<class P >
bool isInf (const std::complex< P > &x)
template<class P >
bool 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 conjugate< P > &  x  )  [inline]

References SimTK::isInf(), and SimTK::isNaN().

bool SimTK::isInf ( const std::complex< P > &  x  )  [inline]

References SimTK::isInf(), and SimTK::isNaN().

bool SimTK::isInf ( const long double &  x  )  [inline]
bool SimTK::isInf ( const double &  x  )  [inline]
bool SimTK::isInf ( const float &  x  )  [inline]
bool SimTK::isInf ( const negator< conjugate< P > > &  x  )  [inline]

References SimTK::isInf().

bool SimTK::isInf ( const negator< std::complex< P > > &  x  )  [inline]

References SimTK::isInf().

bool SimTK::isInf ( const negator< long double > &  x  )  [inline]

References SimTK::isInf().

bool SimTK::isInf ( const negator< double > &  x  )  [inline]

References SimTK::isInf().

bool SimTK::isInf ( const negator< float > &  x  )  [inline]

Generated on Thu Aug 12 16:37:47 2010 for SimTKcore by  doxygen 1.6.1