1#ifndef STAN_MATH_REV_FUN_LMGAMMA_HPP
2#define STAN_MATH_REV_FUN_LMGAMMA_HPP
19 for (
int i = 1; i <
ad_ + 1; i++) {
22 bvi_->adj_ += adj_ * deriv;
lmgamma_dv_vari(int a, vari *bvi)
fvar< return_type_t< T, int > > lmgamma(int x1, const fvar< T > &x2)
fvar< T > digamma(const fvar< T > &x)
Return the derivative of the log gamma function at the specified argument.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...