8#ifndef KERNEL_LAFEM_ARCH_SCALE_COL_BCSR_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
14 template <
typename DT_,
typename IT_>
15 void ScaleColBCSR::exec_generic_impl(DT_ * r,
const DT_ *
const a,
const IT_ *
const col_idx,
16 const IT_ *
const row_ptr,
const DT_ *
const x,
const Index rows,
const Index,
const Index,
const int bh,
const int bw)
18 FEAT_PRAGMA_OMP(parallel
for)
19 for (
Index i = 0 ; i < rows ; ++i)
21 const IT_ end(row_ptr[i + 1]);
22 for (IT_ j(row_ptr[i]) ; j < end ; ++j)
24 for (
int h(0) ; h < bh ; ++h)
26 for (
int w(0) ; w < bw ; ++w)
28 r[j * IT_(bh * bw) + IT_(h * bw + w)] = a[j * IT_(bh * bw) + IT_(h * bw + w)] * x[col_idx[j]*IT_(bw) + IT_(w)];
std::uint64_t Index
Index data type.