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

◆ fmax() [9/10]

var stan::math::fmax ( const var a,
double  b 
)
inline

Returns the maximum of the variable and scalar, promoting the scalar to a variable if it is larger (C99).

For fmax(a, b), if a's value is greater than b, then a is returned, otherwise a fresh variable implementation wrapping the value b is returned.

Parameters
aFirst variable.
bSecond value
Returns
If the first variable's value is larger than or equal to the second value, the first variable, otherwise the second value promoted to a fresh variable.

Definition at line 91 of file fmax.hpp.