7#ifndef KERNEL_LAFEM_ARCH_TRANSPOSE_GENERIC_HPP
8#define KERNEL_LAFEM_ARCH_TRANSPOSE_GENERIC_HPP 1
10#ifndef KERNEL_LAFEM_ARCH_TRANSPOSE_HPP
11#error "Do not include this implementation-only header file directly!"
23 template <
typename DT_>
29 DT_* t=
new DT_[rows_x * columns_x];
30 std::memcpy(t, x, rows_x * columns_x *
sizeof(DT_));
31 FEAT_PRAGMA_OMP(parallel
for)
32 for (
Index i = 0 ; i < rows_x ; ++i)
34 for (
Index j = 0 ; j < columns_x ; ++j)
36 r[j * rows_x + i] = t[i * columns_x + j];
43 FEAT_PRAGMA_OMP(parallel
for)
44 for (
Index i = 0 ; i < rows_x ; ++i)
46 for (
Index j = 0 ; j < columns_x ; ++j)
48 r[j * rows_x + i] = x[i * columns_x + j];
std::uint64_t Index
Index data type.
static void value_generic(DT_ *r, const DT_ *const x, const Index rows_x, const Index columns_x)