1 #ifndef STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP
2 #define STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP
13 class log1m_exp_v_vari :
public op_v_vari {
15 explicit log1m_exp_v_vari(vari* avi) :
16 op_v_vari(stan::math::
log1m_exp(avi->val_),
24 avi_->adj_ -= adj_ /
::expm1(-(avi_->val_));
34 return var(
new log1m_exp_v_vari(a.
vi_));
Independent (input) and dependent (output) variables for gradients.
fvar< T > expm1(const fvar< T > &x)
fvar< T > log1m_exp(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.