1 #ifndef STAN__MATH__FUNCTIONS__IS_NAN_HPP
2 #define STAN__MATH__FUNCTIONS__IS_NAN_HPP
4 #include <boost/math/special_functions/fpclassify.hpp>
bool isnan(const stan::agrad::var &v)
Checks if the given number is NaN.
int is_nan(const double x)
Returns 1 if the input is NaN and 0 otherwise.