1 #ifndef STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP 2 #define STAN_MATH_REV_SCAL_FUN_LOG1M_EXP_HPP 12 class log1m_exp_v_vari :
public op_v_vari {
14 explicit log1m_exp_v_vari(vari* avi) :
18 avi_->adj_ -= adj_ /
expm1(-(avi_->val_));
35 return var(
new log1m_exp_v_vari(x.
vi_));
Independent (input) and dependent (output) variables for gradients.
fvar< T > expm1(const fvar< T > &x)
fvar< T > log1m_exp(const fvar< T > &x)
Return the natural logarithm of one minus the exponentiation of the specified argument.
vari * vi_
Pointer to the implementation of this variable.