Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ falling_factorial() [1/5]

template<typename T >
fvar< T > stan::math::falling_factorial ( const fvar< T > &  x,
int  n 
)
inline

Return autodiff variable with the gradient and result of the falling factorial function applied to the inputs.

Will throw for NaN x and for negative n, as implemented in primitive function.

Template Parameters
Tinner type of the fvar
Parameters
xArgument.
nArgument
Returns
tangent of falling factorial at arguments.

Definition at line 25 of file falling_factorial.hpp.