1 #ifndef STAN_MATH_REV_SCAL_FUN_FMAX_HPP 2 #define STAN_MATH_REV_SCAL_FUN_FMAX_HPP 100 return a >= b ? a :
var(b);
128 return a > b ?
var(a) : b;
const double NOT_A_NUMBER
(Quiet) not-a-number value.
Independent (input) and dependent (output) variables for gradients.
vari * vi_
Pointer to the implementation of this variable.
int is_nan(const fvar< T > &x)
Returns 1 if the input's value is NaN and 0 otherwise.
fvar< T > fmax(const fvar< T > &x1, const fvar< T > &x2)
Return the greater of the two specified arguments.