CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CommonUtils Namespace Reference

Functions

template<typename T >
bool isinf (T value)
 

Function Documentation

template<typename T >
bool CommonUtils::isinf ( T  value)
inline

Definition at line 7 of file CommonUtils.h.

References Abs(), and infinity.

Referenced by cond::serialization::access< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::equal_(), GeometricAnnealing::weight(), and DeterministicAnnealing::weight().

8  {
10  return std::numeric_limits<T>::has_infinity && value == std::numeric_limits<T>::infinity();
11  }
T Abs(T a)
Definition: MathUtil.h:49
const double infinity