mxnet
Functions
mshadow::isnan_typed Namespace Reference

determines if the given floating point number is not a number More...

Functions

template<typename DType >
MSHADOW_XINLINE bool IsNan (volatile DType val)
 
template<>
MSHADOW_XINLINE bool IsNan (volatile float val)
 
template<>
MSHADOW_XINLINE bool IsNan (volatile double val)
 
template<>
MSHADOW_XINLINE bool IsNan (volatile long double val)
 
template<>
MSHADOW_XINLINE bool IsNan (volatile mshadow::half::half_t val)
 

Detailed Description

determines if the given floating point number is not a number

Function Documentation

template<typename DType >
MSHADOW_XINLINE bool mshadow::isnan_typed::IsNan ( volatile DType  val)
template<>
MSHADOW_XINLINE bool mshadow::isnan_typed::IsNan ( volatile float  val)
template<>
MSHADOW_XINLINE bool mshadow::isnan_typed::IsNan ( volatile double  val)
template<>
MSHADOW_XINLINE bool mshadow::isnan_typed::IsNan ( volatile long double  val)
template<>
MSHADOW_XINLINE bool mshadow::isnan_typed::IsNan ( volatile mshadow::half::half_t  val)