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

◆ generate()

template<typename T , bool Colwise, bool Rowwise>
kernel_parts stan::math::optional_broadcast_< T, Colwise, Rowwise >::generate ( const std::string &  row_idx_name,
const std::string &  col_idx_name,
const bool  view_handled,
const std::string &  var_name_arg 
) const
inline

Generates kernel code for this and nested expressions.

Parameters
row_idx_namerow index variable name
col_idx_namecolumn index variable name
view_handledwhether whether caller already handled matrix view
var_name_argname of the variable in kernel that holds argument to this expression
Returns
part of kernel with code for this and nested expressions

Definition at line 62 of file optional_broadcast.hpp.