1 #ifndef STAN__AGRAD__REV__FUNCTIONS__LOG2_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__LOG2_HPP
13 class log2_vari :
public op_v_vari {
15 log2_vari(vari* avi) :
16 op_v_vari(stan::math::
log2(avi->val_),avi) {
55 return var(
new log2_vari(a.
vi_));
const double LOG_2
The natural logarithm of 2, .
fvar< T > log2(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.