8#ifndef KERNEL_LAFEM_ARCH_DIAGONAL_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 DiagonalCSR::exec_generic_impl(DT_ * diag,
const DT_ *
const val,
const IT_ *
const col_idx,
const IT_ *
const row_ptr,
const Index rows)
17 FEAT_PRAGMA_OMP(parallel
for)
18 for (
Index row = 0; row < rows; row++)
21 const Index end = row_ptr[row + 1];
22 for (
Index j = row_ptr[row]; j < end; j++)
24 if (row == col_idx[j])
std::uint64_t Index
Index data type.