Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
If first argument is true return the second argument, else return the third argument.
Eigen expressions are evaluated so that the return type is the same for both branches.
Both containers must have the same plain type. The scalar type of the return is determined by the return_type_t<> type trait.
Overload for use with two containers.
T_true | A container of stan Scalar types |
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 54 of file select.hpp.