![]() |
Stan Math Library
5.3.0
Automatic Differentiation
|
|
inline |
If first argument is true return the second argument, else return the third argument.
Overload for use with an Eigen object of booleans, and two scalars.
The chosen scalar is returned as an Eigen object of the same dimension as the input Eigen argument
| T_bool | type of Eigen boolean object |
| T_true | A stan Scalar type |
| T_false | A stan Scalar type |
| c | Eigen object of boolean condition values. |
| y_true | Value to return if condition is true. |
| y_false | Value to return if condition is false. |
Definition at line 143 of file select.hpp.