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