1 #ifndef STAN__AGRAD__REV__FUNCTIONS__LOG1M_EXP_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__LOG1M_EXP_HPP
8 #include <boost/math/special_functions/expm1.hpp>
14 class log1m_exp_v_vari :
public op_v_vari {
16 log1m_exp_v_vari(vari* avi) :
17 op_v_vari(stan::math::
log1m_exp(avi->val_),
32 return var(
new log1m_exp_v_vari(a.
vi_));
vari * vi_
Pointer to the implementation of this variable.
fvar< T > expm1(const fvar< T > &x)
fvar< T > log1m_exp(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.