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

◆ fmin() [10/10]

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

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

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

Parameters
aFirst value.
bSecond variable.
Returns
If the first value is smaller than the second variable's value, return the first value promoted to a variable, otherwise return the second variable.

Definition at line 113 of file fmin.hpp.