7#ifndef KERNEL_LAFEM_ARCH_DIAGONAL_GENERIC_HPP
8#define KERNEL_LAFEM_ARCH_DIAGONAL_GENERIC_HPP 1
10#ifndef KERNEL_LAFEM_ARCH_DIAGONAL_HPP
11#error "Do not include this implementation-only header file directly!"
20 template <
typename IT_>
21 void Diagonal::csr_generic(IT_ * diag,
const IT_ *
const col_ind,
const IT_ *
const row_ptr,
const Index rows)
23 FEAT_PRAGMA_OMP(parallel
for)
24 for (
Index row = 0; row < rows; row++)
26 const Index end = row_ptr[row + 1];
27 diag[row] = row_ptr[rows];
28 for (
Index col = row_ptr[row]; col < end; col++)
30 if (row == col_ind[col])
std::uint64_t Index
Index data type.