1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG_FALLING_FACTORIAL_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LOG_FALLING_FACTORIAL_HPP 54 template <
typename T1,
typename T2>
59 static const char*
function =
"log_falling_factorial";
fvar< T > log_falling_factorial(const fvar< T > &x, const fvar< T > &n)
fvar< T > lgamma(const fvar< T > &x)
Return the natural logarithm of the gamma function applied to the specified argument.
const double NOT_A_NUMBER
(Quiet) not-a-number value.
bool is_any_nan(const T &x)
Returns true if the input is NaN and false otherwise.
boost::math::tools::promote_args< double, typename scalar_type< T >::type, typename return_type< Types_pack... >::type >::type type
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.