Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
If first argument is true return the second argument, else return the third argument.
Overload for use when the 'true' return is a scalar and the 'false' return is a container
If chosen, the scalar is returned as a container of the same size and plain type as the provided argument. Consequently, any Eigen expressions are evaluated.
T_true | A stan Scalar type |
T_false | A container of stan Scalar types |
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 118 of file select.hpp.