1 #ifndef STAN_MATH_PRIM_SCAL_FUN_FALLING_FACTORIAL_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_FALLING_FACTORIAL_HPP 5 #include <boost/math/special_functions/factorials.hpp> 67 static const char*
function =
"falling_factorial";
var falling_factorial(const var &a, int b)
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
fvar< T > falling_factorial(const fvar< T > &x, int n)
Return autodiff variable with the gradient and result of the falling factorial function applied to th...
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
boost::math::policies::policy< boost::math::policies::overflow_error< boost::math::policies::errno_on_error >, boost::math::policies::pole_error< boost::math::policies::errno_on_error > > boost_policy_t
Boost policy that overrides the defaults to match the built-in C++ standard library functions...