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