1 #ifndef STAN_MATH_REV_SCAL_FUN_INC_BETA_HPP 2 #define STAN_MATH_REV_SCAL_FUN_INC_BETA_HPP
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.
const double val_
The value of this variable.
fvar< T > inc_beta(const fvar< T > &a, const fvar< T > &b, const fvar< T > &x)
fvar< T > beta(const fvar< T > &x1, const fvar< T > &x2)
Return fvar with the beta function applied to the specified arguments and its gradient.
void grad_reg_inc_beta(T &g1, T &g2, const T &a, const T &b, const T &z, const T &digammaA, const T &digammaB, const T &digammaSum, const T &betaAB)
Computes the gradients of the regularized incomplete beta function.
vari * vi_
Pointer to the implementation of this variable.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
inc_beta_vvv_vari(vari *avi, vari *bvi, vari *cvi)
double adj_
The adjoint of this variable, which is the partial derivative of this variable with respect to the ro...
fvar< T > pow(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.