1 #ifndef STAN_MATH_FWD_SCAL_FUN_FABS_HPP 2 #define STAN_MATH_FWD_SCAL_FUN_FABS_HPP 20 else if (x.
val_ > 0.0)
22 else if (x.
val_ < 0.0)
fvar< T > fabs(const fvar< T > &x)
const double NOT_A_NUMBER
(Quiet) not-a-number value.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
var fabs(const var &a)
Return the absolute value of the variable (cmath).
int is_nan(const fvar< T > &x)
Returns 1 if the input's value is NaN and 0 otherwise.