1 #ifndef STAN_MATH_REV_SCAL_FUN_EXPM1_HPP
2 #define STAN_MATH_REV_SCAL_FUN_EXPM1_HPP
11 #include <boost/math/special_functions/expm1.hpp>
19 class expm1_vari :
public op_v_vari {
21 explicit expm1_vari(vari* avi) :
22 op_v_vari(::
expm1(avi->val_), avi) {
25 avi_->adj_ += adj_ * (val_ + 1.0);
58 return var(
new expm1_vari(a.
vi_));
Independent (input) and dependent (output) variables for gradients.
fvar< T > expm1(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
var expm1(const var &a)
The exponentiation of the specified variable minus 1 (C99).