1#ifndef STAN_MATH_FWD_FUN_LMGAMMA_HPP
2#define STAN_MATH_FWD_FUN_LMGAMMA_HPP
17 for (
int count = 1; count < x1 + 1; count++) {
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 ...
Scalar val_
The value of this variable.
Scalar d_
The tangent (derivative) of this variable.
This template class represents scalars used in forward-mode automatic differentiation,...