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

◆ fmax() [1/10]

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