1 #ifndef STAN__AGRAD__REV__FUNCTIONS__LOG1P_EXP_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__LOG1P_EXP_HPP
13 class log1p_exp_v_vari :
public op_v_vari {
15 log1p_exp_v_vari(vari* avi) :
16 op_v_vari(stan::math::
log1p_exp(avi->val_),
30 return var(
new log1p_exp_v_vari(a.
vi_));
fvar< T > log1p_exp(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
double calculate_chain(const double &x, const double &val)
Independent (input) and dependent (output) variables for gradients.