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

◆ get_kernel_parts()

template<typename Mat , typename VecT >
static kernel_parts stan::math::internal::matvec_mul_opt< elt_multiply_< Mat, broadcast_< VecT, true, false > > >::get_kernel_parts ( const Arg mul,
std::unordered_map< const void *, const char * > &  generated,
std::unordered_map< const void *, const char * > &  generated_all,
name_generator name_gen,
const std::string &  row_index_name,
const std::string &  col_index_name 
)
inlinestatic

Generates kernel code for the argument of rowwise reduction, applying the optimization - ignoring the triangular view of the vector, as it is already handeled by rowwise reduction.

Parameters
mulargument of the rowwise reduction
[in,out]generatedmap from (pointer to) already generated local operations to variable names
[in,out]generated_allmap from (pointer to) already generated all operations to variable names
name_genname generator for this kernel
row_index_namerow index variable name
col_index_namecolumn index variable name
Returns
part of kernel with code for this and nested expressions

Definition at line 73 of file rowwise_reduction.hpp.