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