1 #ifndef STAN_MATH_FWD_SCAL_FUN_FMAX_HPP 2 #define STAN_MATH_FWD_SCAL_FUN_FMAX_HPP 56 }
else if (x1 > x2.
val_) {
58 }
else if (x1 == x2.
val_) {
82 }
else if (x1.
val_ > x2) {
84 }
else if (x1.
val_ == x2) {
T d_
The tangent (derivative) of this variable.
const double NOT_A_NUMBER
(Quiet) not-a-number value.
T val_
The value 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.
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.