1 #ifndef STAN__AGRAD__REV__FUNCTIONS__FABS_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__FABS_HPP
58 else if (a.
val() < 0.0)
59 return var(
new neg_vari(a.
vi_));
60 else if (a.
val() == 0)
fvar< T > fabs(const fvar< T > &x)
const double NOT_A_NUMBER
(Quiet) not-a-number value.
double val() const
Return the value of this variable.
vari * vi_
Pointer to the implementation of this variable.
The variable implementation base class.
Independent (input) and dependent (output) variables for gradients.