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 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. |
Overload for use with an Eigen array of booleans, one Eigen array and a scalar as input.
T_bool | type of Eigen boolean object |
T_true | A stan Scalar type or Eigen Array type |
T_false | A stan Scalar type or Eigen Array 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 149 of file select.hpp.