1 #ifndef STAN__AGRAD__REV__FUNCTIONS__EXP2_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__EXP2_HPP
14 class exp2_vari :
public op_v_vari {
16 exp2_vari(vari* avi) :
17 op_v_vari(::
pow(2.0,avi->val_),avi) {
54 return var(
new exp2_vari(a.
vi_));
const double LOG_2
The natural logarithm of 2, .
fvar< T > exp2(const fvar< T > &x)
fvar< T > pow(const fvar< T > &x1, const fvar< T > &x2)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.