8#ifndef KERNEL_LAFEM_ARCH_TRANSPOSE_DENSE_HPP
9#error "Do not include this implementation-only header file directly!"
12namespace FEAT::LAFEM::Arch
15 template <
typename DT_>
21 DT_* t=
new DT_[rows_x * cols_x];
23 FEAT_PRAGMA_OMP(parallel
for)
24 for (
Index i = 0 ; i < rows_x ; ++i)
26 for (
Index j = 0 ; j < cols_x ; ++j)
28 r[j * rows_x + i] = t[i * cols_x + j];
35 FEAT_PRAGMA_OMP(parallel
for)
36 for (
Index i = 0 ; i < rows_x ; ++i)
38 for (
Index j = 0 ; j < cols_x ; ++j)
40 r[j * rows_x + i] = x[i * cols_x + j];
void memcopy_main(void *dst, const void *src, std::size_t bytes)
Copies a region of a main memory block into another main memory block.
std::uint64_t Index
Index data type.
static void exec_generic_impl(DT_ *r, const DT_ *const x, const Index rows_x, const Index cols_x)