1 #ifndef STAN_MATH_REV_SCAL_FUN_LMGAMMA_HPP 2 #define STAN_MATH_REV_SCAL_FUN_LMGAMMA_HPP 19 for (
int i = 1; i <
ad_ + 1; i++)
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.
const double val_
The value of this variable.
vari * vi_
Pointer to the implementation of this variable.
double adj_
The adjoint of this variable, which is the partial derivative of this variable with respect to the ro...
fvar< typename stan::return_type< T, int >::type > lmgamma(int x1, const fvar< T > &x2)
lmgamma_dv_vari(int a, vari *bvi)
fvar< T > digamma(const fvar< T > &x)
Return the derivative of the log gamma function at the specified argument.