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

◆ fmax() [2/10]

template<typename T >
fvar< T > stan::math::fmax ( double  x1,
const fvar< T > &  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 46 of file fmax.hpp.