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 container and the 'false' return is a scalar
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 container of stan Scalar types |
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 83 of file select.hpp.