38 printf(
"checkFinite() ERROR: we have encountered a nan!\n");
39 }
else if (_fpclass(tmp) == _FPCLASS_PINF) {
40 printf(
"checkFinite() ERROR: we have encountered a pos inf!\n");
42 printf(
"checkFinite() ERROR: we have encountered a neg inf!\n");
44 throw std::range_error(
"checkFinite()");
46 #elif defined __CYGWIN__
49 printf(
"checkFinite() ERROR: we have encountered a nan!\n");
50 }
else if (isinf(tmp) == 1) {
51 printf(
"checkFinite() ERROR: we have encountered a pos inf!\n");
53 printf(
"checkFinite() ERROR: we have encountered a neg inf!\n");
55 throw std::range_error(
"checkFinite()");
60 printf(
"checkFinite() ERROR: we have encountered a nan!\n");
61 }
else if (::isinf(tmp) == 1) {
62 printf(
"checkFinite() ERROR: we have encountered a pos inf!\n");
64 printf(
"checkFinite() ERROR: we have encountered a neg inf!\n");
66 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...