1 #ifndef STAN__AGRAD__REV__FUNCTIONS__LOG_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__LOG_HPP
12 class log_vari :
public op_v_vari {
15 op_v_vari(std::
log(avi->val_),avi) {
18 avi_->adj_ += adj_ / avi_->val_;
52 return var(
new log_vari(a.
vi_));
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.
fvar< T > log(const fvar< T > &x)