Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
If first argument is true return the second argument, else return the third argument.
select(c, y1, y0) = c ? y1 : y0
.
T_true | A stan Scalar type |
T_false | A stan Scalar type |
c | Boolean condition value. |
y_true | Value to return if condition is true. |
y_false | Value to return if condition is false. |
Definition at line 26 of file select.hpp.