1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG_RISING_FACTORIAL_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LOG_RISING_FACTORIAL_HPP 52 template <
typename T1,
typename T2>
56 return std::numeric_limits<double>::quiet_NaN();
57 static const char*
function =
"log_rising_factorial";
fvar< T > lgamma(const fvar< T > &x)
Return the natural logarithm of the gamma function applied to the specified argument.
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
fvar< T > log_rising_factorial(const fvar< T > &x, const fvar< T > &n)
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.