Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ select() [1/6]

template<typename T_condition , typename T_then , typename T_else , require_all_kernel_expressions_t< T_condition, T_then, T_else > * = nullptr, require_any_not_arithmetic_t< T_condition, T_then, T_else > * = nullptr>
select_< as_operation_cl_t< T_condition >, as_operation_cl_t< T_then >, as_operation_cl_t< T_else > > stan::math::select ( T_condition &&  condition,
T_then &&  then,
T_else &&  els 
)
inline

Selection operation on kernel generator expressions.

This is element wise ternary operator condition ? then : els .

Template Parameters
T_conditiontype of condition expression
T_thentype of then expression
T_elsetype of else expression
Parameters
conditioncondition expression
thenthen expression
elselse expression
Returns
selection operation expression

Definition at line 148 of file select.hpp.