1 #ifndef STAN__AGRAD__REV__FUNCTIONS__ATANH_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__ATANH_HPP
13 class atanh_vari :
public op_v_vari {
15 atanh_vari(
double val, vari* avi) :
19 avi_->adj_ += adj_ / (1.0 - avi_->val_ * avi_->val_);
67 return var(
new atanh_vari(std::numeric_limits<double>::infinity(),a.
vi_));
69 return var(
new atanh_vari(-std::numeric_limits<double>::infinity(),a.
vi_));
double val() const
Return the value of this variable.
vari * vi_
Pointer to the implementation of this variable.
fvar< T > atanh(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.