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

◆ fmax() [3/10]

template<typename T >
fvar< T > stan::math::fmax ( const fvar< T > &  x1,
double  x2 
)
inline

Return the greater of the two specified arguments.

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

Template Parameters
Tinner type of the fvar
Parameters
x1First argument.
x2Second argument.
Returns
maximum of arguments, and if one is NaN return the other

Definition at line 69 of file fmax.hpp.