1 #ifndef STAN__AGRAD__REV__FUNCTIONS__DIGAMMA_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__DIGAMMA_HPP
4 #include <boost/math/special_functions/digamma.hpp>
5 #include <boost/math/special_functions/zeta.hpp>
14 class digamma_vari :
public op_v_vari {
16 digamma_vari(vari* avi) :
17 op_v_vari(boost::math::
digamma(avi->val_), avi) {
26 return var(
new digamma_vari(a.
vi_));
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.
fvar< T > digamma(const fvar< T > &x)