Stan Math Library
5.0.0
Automatic Differentiation
|
Returns the maximum of a scalar and variable, promoting the scalar to a variable if it is larger (C99).
For fmax(a, b)
, if a is greater than b's value, then a fresh variable implementation wrapping a is returned, otherwise b is returned.
a | First value. |
b | Second variable. |