1 #ifndef STAN_MATH_FWD_SCAL_FUN_FABS_HPP
2 #define STAN_MATH_FWD_SCAL_FUN_FABS_HPP
21 else if (x.
val_ > 0.0)
23 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.
bool isnan(const stan::math::var &v)
Checks if the given number is NaN.
var fabs(const var &a)
Return the absolute value of the variable (cmath).