25 #ifndef UQ_MATH_MACROS_H
26 #define UQ_MATH_MACROS_H
28 #include <queso/config_queso.h>
30 #ifdef QUESO_HAVE_CXX11_ISNAN
32 #elif QUESO_HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_HPP
33 #include <boost/math/special_functions.hpp>
41 #ifdef QUESO_HAVE_CXX11_ISNAN
42 return std::isnan(arg);
43 #elif QUESO_HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_HPP
44 return (boost::math::isnan)(arg);
46 # error "No valid definition for is_nan found!"
53 #ifdef QUESO_HAVE_CXX11_ISFINITE
54 return std::isfinite(arg);
55 #elif QUESO_HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_HPP
56 return (boost::math::isfinite)(arg);
58 # error "No valid definition for isfinite found!"
64 #endif // UQ_MATH_MACROS_H
bool queso_isfinite(T arg)