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