1 #ifndef STAN_MATH_REV_SCAL_FUN_IBETA_HPP 2 #define STAN_MATH_REV_SCAL_FUN_IBETA_HPP 20 double precision = 1
e-8,
21 double max_steps = 1000) {
27 while (
std::abs(diff) > precision && ++k < max_steps) {
58 cvi_->
adj_ +=
adj_ * boost::math::ibeta_derivative(a, b, c);
105 cvi_->
adj_ +=
adj_ * boost::math::ibeta_derivative(a, b, c);
150 cvi_->
adj_ +=
adj_ * boost::math::ibeta_derivative(a, b, c);
185 cvi_->
adj_ +=
adj_ * boost::math::ibeta_derivative(a, b, c);
ibeta_ddv_vari(double a, double b, vari *xvi)
fvar< T > abs(const fvar< T > &x)
ibeta_dvv_vari(double a, vari *bvi, vari *xvi)
ibeta_vvd_vari(vari *avi, vari *bvi, double x)
ibeta_vdv_vari(vari *avi, double b, vari *xvi)
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
fvar< T > log(const fvar< T > &x)
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
const double val_
The value of this variable.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
fvar< T > sin(const fvar< T > &x)
ibeta_vvv_vari(vari *avi, vari *bvi, vari *xvi)
vari * vi_
Pointer to the implementation of this variable.
ibeta_vdd_vari(vari *avi, double b, double x)
double ibeta_hypergeometric_helper(double a, double b, double z, double precision=1e-8, double max_steps=1000)
Calculates the generalized hypergeometric 3F2(a, a, b; a + 1, a + 1; z).
double ibeta(double a, double b, double x)
The normalized incomplete beta function of a, b, and x.
double e()
Return the base of the natural logarithm.
ibeta_dvd_vari(double a, vari *bvi, double x)
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
var ibeta(const var &a, const var &b, const var &x)
The normalized incomplete beta function of a, b, and x.
void chain()
Apply the chain rule to this variable based on the variables on which it depends. ...
double pi()
Return the value of pi.
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 > tgamma(const fvar< T > &x)
Return the result of applying the gamma function to the specified argument.
fvar< T > digamma(const fvar< T > &x)
Return the derivative of the log gamma function at the specified argument.