1#ifndef STAN_MATH_REV_FUN_GAMMA_Q_HPP
2#define STAN_MATH_REV_FUN_GAMMA_Q_HPP
11#include <boost/math/special_functions/gamma.hpp>
26 -= adj_ * boost::math::gamma_p_derivative(
avi_->val_,
bvi_->val_);
46 bvi_->adj_ -= adj_ * boost::math::gamma_p_derivative(
ad_,
bvi_->val_);
gamma_q_dv_vari(double a, vari *bvi)
gamma_q_vd_vari(vari *avi, double b)
gamma_q_vv_vari(vari *avi, vari *bvi)
return_type_t< T1, T2 > grad_reg_inc_gamma(T1 a, T2 z, T1 g, T1 dig, double precision=1e-6, int max_steps=1e5)
Gradient of the regularized incomplete gamma functions igamma(a, z)
fvar< T > tgamma(const fvar< T > &x)
Return the result of applying the gamma function to the specified argument.
fvar< T > gamma_q(const fvar< T > &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 ...