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

◆ lgamma() [7/7]

template<typename T , require_stan_scalar_or_eigen_t< T > * = nullptr>
auto stan::math::lgamma ( const var_value< T > &  a)
inline

The log gamma function for variables (C99).

The derivative is the digamma function,

\(\frac{d}{dx} \Gamma(x) = \psi^{(0)}(x)\).

Template Parameters
TArithmetic or a type inheriting from EigenBase.
Parameters
aThe variable.
Returns
Log gamma of the variable.

Definition at line 24 of file lgamma.hpp.