HOPS
HOPS class reference
Public Member Functions | Static Public Member Functions | List of all members
hops::MHO_CheckForNaN< XNumericalType > Class Template Reference

Class MHO_CheckForNaN. More...

#include <MHO_CheckForNaN.hh>

Public Member Functions

 MHO_CheckForNaN ()
 
virtual ~MHO_CheckForNaN ()
 

Static Public Member Functions

static bool isnan (const XNumericalType &value)
 Checks if a numerical value is NaN by comparing it to itself. note that this primitive (X != X) comparison will not detect "INF" (only NAN) More...
 

Detailed Description

template<typename XNumericalType>
class hops::MHO_CheckForNaN< XNumericalType >

Class MHO_CheckForNaN.

Constructor & Destructor Documentation

◆ MHO_CheckForNaN()

template<typename XNumericalType >
hops::MHO_CheckForNaN< XNumericalType >::MHO_CheckForNaN ( )

◆ ~MHO_CheckForNaN()

template<typename XNumericalType >
virtual hops::MHO_CheckForNaN< XNumericalType >::~MHO_CheckForNaN ( )
virtual

Member Function Documentation

◆ isnan()

template<typename XNumericalType >
static bool hops::MHO_CheckForNaN< XNumericalType >::isnan ( const XNumericalType &  value)
inlinestatic

Checks if a numerical value is NaN by comparing it to itself. note that this primitive (X != X) comparison will not detect "INF" (only NAN)

Parameters
valueInput value of type XNumericalType& to check for NaN.
Returns
True if value is NaN, false otherwise.
Note
This is a static function.

The documentation for this class was generated from the following file: