1 #ifndef STAN__AGRAD__FWD__FUNCTIONS__FABS_HPP
2 #define STAN__AGRAD__FWD__FUNCTIONS__FABS_HPP
25 else if (x.
val_ > 0.0)
27 else if (x.
val_ < 0.0)
bool isnan(const stan::agrad::var &v)
Checks if the given number is NaN.
fvar< T > fabs(const fvar< T > &x)
const double NOT_A_NUMBER
(Quiet) not-a-number value.
var fabs(const var &a)
Return the absolute value of the variable (cmath).
T value_of(const fvar< T > &v)
Return the value of the specified variable.
double value_of(const T x)
Return the value of the specified scalar argument converted to a double value.