26 #if defined(USE_UNDERSCORE_ISNAN)
29 #define isnan(x) _isnan(x)
30 #define finite(x) _finite(x)
31 #elif defined(USE_GLOBAL_ISNAN)
35 #elif defined(USE_STD_ISNAN)
38 #define finite(x) std::isfinite(x)
47 printf(
"checkFinite() ERROR: we have encountered a nan!\n");
49 printf(
"checkFinite() ERROR: we have encountered a pos inf!\n");
51 printf(
"checkFinite() ERROR: we have encountered a neg inf!\n");
53 throw std::range_error(
"checkFinite()");
void checkFinite(const double tmp)
Check to see that a number is finite (not NaN, +Inf or -Inf)
This file contains definitions of terms that are used in internal routines and are unlikely to need m...