Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ max_nan()

double stan::math::internal::max_nan ( double  a,
double  b 
)
inline

NaN-favouring max.

If either of arguments is NaN, returns NaN. Otherwise returns larger of the arguments.

Parameters
afirst argument
bsecond argument
Returns
NaN or larger argument

Definition at line 69 of file mrrr.hpp.