8#ifndef KERNEL_LAFEM_ARCH_MATMATMULT_DENSE_DENSE_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template <
typename DT_>
15 void MatMatMultDenseDense::exec_generic_impl(DT_ * r,
const DT_ alpha,
const DT_ *
const x,
const DT_ *
const y,
const DT_ *
const z,
const Index rows,
const Index cols,
const Index inner)
17 FEAT_PRAGMA_OMP(parallel
for)
18 for (
Index i = 0 ; i < rows ; ++i)
20 for (
Index j = 0 ; j < cols ; ++j)
23 Index xindex(i * inner);
25 for (
Index xcol(0) ; xcol < inner ; ++xcol)
27 sum = sum + x[xindex + xcol] * y[yindex + xcol * cols];
30 r[i * cols + j] = z[i * cols + j] + alpha * sum;
32 r[i * cols + j] = alpha * sum;
std::uint64_t Index
Index data type.