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

◆ generate() [1/2]

template<typename T_condition , typename T_then , typename T_else >
kernel_parts stan::math::select_< T_condition, T_then, T_else >::generate ( const std::string &  row_index_name,
const std::string &  col_index_name,
const bool  view_handled,
const std::string &  var_name_condition,
const std::string &  var_name_then,
const std::string &  var_name_else 
) const
inline

Generates kernel code for this (select) operation.

Parameters
row_index_namerow index variable name
col_index_namecolumn index variable name
view_handledwhether whether caller already handled matrix view
var_name_conditionvariable name of the condition expression
var_name_elsevariable name of the then expression
var_name_thenvariable name of the else expression
Returns
part of kernel with code for this expression

Definition at line 97 of file select.hpp.