1#ifndef STAN_MATH_PRIM_FUN_IS_NONPOSITIVE_INTEGER_HPP
2#define STAN_MATH_PRIM_FUN_IS_NONPOSITIVE_INTEGER_HPP
20 return x <= 0.0 &&
floor(x) == x;
fvar< T > floor(const fvar< T > &x)
bool is_nonpositive_integer(T x)
Returns true if the input is a nonpositive integer and false otherwise.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...