8#ifndef KERNEL_LAFEM_ARCH_MATVECMULT_DENSE_DENSE_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template <
typename DT_>
15 void MatVecMultDenseDense::exec_generic_impl(DT_ * r,
const DT_ alpha,
const DT_ *
const y,
const DT_ *
const val,
const DT_ *
const x,
const Index rows,
const Index cols,
bool transposed)
21 FEAT_PRAGMA_OMP(parallel
for)
22 for (
Index col = 0 ; col < cols ; ++col)
25 for (
Index row(0); row < rows; ++row)
27 sum += val[row * cols + col] * x[row];
34 FEAT_PRAGMA_OMP(parallel
for)
35 for (
Index col = 0 ; col < cols ; ++col)
38 for (
Index row(0); row < rows; ++row)
40 sum += val[row * cols + col] * x[row];
42 r[col] = y[col] + alpha * sum;
50 FEAT_PRAGMA_OMP(parallel
for)
51 for (
Index row = 0 ; row < rows ; ++row)
54 for (
Index col(0); col < cols; ++col)
56 sum += val[row * cols + col] * x[col];
63 FEAT_PRAGMA_OMP(parallel
for)
64 for (
Index row = 0 ; row < rows ; ++row)
67 for (
Index col(0); col < cols; ++col)
69 sum += val[row * cols + col] * x[col];
71 r[row] = y[row] + alpha * sum;
std::uint64_t Index
Index data type.