8#ifndef KERNEL_LAFEM_ARCH_LUMPING_BCSR_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template <
typename DT_,
typename IT_>
15 void LumpingBCSR::exec_generic_impl(DT_ * lump,
const DT_ *
const val,
const IT_ *
const ,
16 const IT_ *
const row_ptr,
const Index rows,
const int block_height,
const int block_width)
21 FEAT_PRAGMA_OMP(parallel
for)
22 for (
Index row = 0; row < rows; row++)
24 Index end = row_ptr[row + 1];
26 for(
Index i(0); i < bh; ++i)
28 lump[bh*row + i] = DT_(0);
31 for (
Index col = row_ptr[row]; col < end; col++)
33 for(
Index i(0); i < bh; ++i)
35 for(
Index j(0); j < bw; ++j)
37 lump[bh*row + i] += val[bh*bw*col + i*bw + j];
std::uint64_t Index
Index data type.