1 #ifndef STAN__AGRAD__REV__FUNCTIONS__LGAMMA_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__LGAMMA_HPP
8 #include <boost/math/special_functions/digamma.hpp>
9 #include <boost/math/special_functions/gamma.hpp>
15 class lgamma_vari :
public op_v_vari {
17 lgamma_vari(
double value, vari* avi) :
18 op_v_vari(value, avi) {
38 return var(
new lgamma_vari(lgamma_a, a.
vi_));
double val() const
Return the value of this variable.
fvar< T > lgamma(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.
fvar< T > digamma(const fvar< T > &x)