8#ifndef KERNEL_LAFEM_ARCH_MATVECMULT_CSCR_DENSE_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template <
typename DT_,
typename IT_>
15 void MatVecMultCSCRDense::exec_generic_impl(DT_ * r,
const DT_ alpha,
const DT_ *
const x,
const DT_ *
const y,
const DT_ *
const val,
16 const IT_ *
const col_idx,
const IT_ *
const row_ptr,
const IT_ *
const row_idx,
const Index rows,
const Index cols,
const Index nonzero_rows,
const Index,
const bool transposed)
22 FEAT_PRAGMA_OMP(parallel
for)
23 for (
Index col = 0 ; col < cols ; ++col)
30 FEAT_PRAGMA_OMP(parallel
for)
31 for (
Index col = 0 ; col < cols ; ++col)
37 for (
Index nzrow(0) ; nzrow < nonzero_rows ; ++nzrow)
39 const Index row(row_idx[nzrow]);
40 for (
Index i(row_ptr[nzrow]) ; i < row_ptr[nzrow+1] ; ++i)
42 r[col_idx[i]] += alpha * val[i] * x[row];
50 FEAT_PRAGMA_OMP(parallel
for)
51 for (
Index row = 0 ; row < rows ; ++row)
58 FEAT_PRAGMA_OMP(parallel
for)
59 for (
Index row = 0 ; row < rows ; ++row)
65 FEAT_PRAGMA_OMP(parallel
for schedule(
static, 2000))
66 for (
Index nzrow = 0 ; nzrow < nonzero_rows ; ++nzrow)
68 const Index row(row_idx[nzrow]);
70 const IT_ end(row_ptr[nzrow + 1]);
71 for (IT_ i = row_ptr[nzrow] ; i < end ; ++i)
73 sum += val[i] * x[col_idx[i]];
75 r[row] += sum * alpha;
std::uint64_t Index
Index data type.