8#ifndef KERNEL_LAFEM_ARCH_UNIT_FILTER_DENSE_CSR_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template<
typename DT_,
typename IT_>
15 void UnitFilterDenseCSR::exec_generic_impl(DT_* mat,
const IT_*
const row_ptr,
const IT_*
const col_idx,
const IT_ *
const f_idx,
const Index f_nzes,
const bool unit,
const int block_width)
19 FEAT_PRAGMA_OMP(parallel
for)
20 for(
Index i = 0; i < f_nzes; ++i)
22 const IT_ ix(f_idx[i]);
23 for(IT_ j(row_ptr[ix]); j < row_ptr[ix + 1]; ++j)
25 mat[j] = (col_idx[j] == ix) ? DT_(1) : DT_(0);
31 FEAT_PRAGMA_OMP(parallel
for)
32 for(
Index i = 0; i < f_nzes; ++i)
34 const IT_ ix(f_idx[i]);
35 for(IT_ j(row_ptr[ix]); j < row_ptr[ix + 1]; ++j)
38 mat[j*
Index(block_width) + k] = DT_(0);
std::uint64_t Index
Index data type.