1 #ifndef STAN_MATH_PRIM_SCAL_FUN_IS_NONPOSITIVE_INTEGER_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_IS_NONPOSITIVE_INTEGER_HPP 17 return x <= 0.0 &&
floor(x) == x;
bool is_nonpositive_integer(T x)
Returns true if the input is a nonpositive integer and false otherwise.
fvar< T > floor(const fvar< T > &x)