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