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

◆ fmax() [6/10]

template<typename T1 , typename T2 , require_all_arithmetic_t< T1, T2 > * = nullptr>
double stan::math::fmax ( T1  x,
T2  y 
)
inline

Return the greater of the two specified arguments.

If one is not-a-number, return the other.

Parameters
xFirst argument.
ySecond argument.
Returns
maximum of x or y and if one is NaN return the other

Definition at line 20 of file fmax.hpp.