1 #ifndef STAN__AGRAD__REV__FUNCTIONS__TGAMMA_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__TGAMMA_HPP
4 #include <boost/math/special_functions/digamma.hpp>
12 class tgamma_vari :
public op_v_vari {
14 tgamma_vari(vari* avi) :
15 op_v_vari(boost::math::
tgamma(avi->val_), avi) {
67 return var(
new tgamma_vari(a.
vi_));
fvar< T > tgamma(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)