1 #ifndef STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP
2 #define STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP
10 #include <boost/math/special_functions/expm1.hpp>
18 class log1m_exp_v_vari :
public op_v_vari {
20 explicit log1m_exp_v_vari(vari* avi) :
21 op_v_vari(stan::math::
log1m_exp(avi->val_),
29 avi_->adj_ -= adj_ /
::expm1(-(avi_->val_));
39 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.