1 #ifndef STAN__AGRAD__REV__FUNCTIONS__INV_LOGIT_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__INV_LOGIT_HPP
12 class inv_logit_vari :
public op_v_vari {
14 inv_logit_vari(vari* avi) :
15 op_v_vari(stan::math::
inv_logit(avi->val_),avi) {
18 avi_->adj_ += adj_ * val_ * (1.0 - val_);
36 return var(
new inv_logit_vari(a.
vi_));
fvar< T > inv_logit(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.