7#ifndef KERNEL_LAFEM_ARCH_AXPY_GENERIC_HPP
8#define KERNEL_LAFEM_ARCH_AXPY_GENERIC_HPP 1
10#ifndef KERNEL_LAFEM_ARCH_AXPY_HPP
11#error "Do not include this implementation-only header file directly!"
14#include <kernel/util/math.hpp>
15#include <kernel/util/tiny_algebra.hpp>
16#include <kernel/util/memory_pool.hpp>
24 template <
typename DT_>
25 void Axpy::value_generic(DT_ * r,
const DT_ a,
const DT_ *
const x,
const Index size)
29 FEAT_PRAGMA_OMP(parallel
for)
30 for (
Index i = 0 ; i < size ; ++i)
37 FEAT_PRAGMA_OMP(parallel
for)
38 for (
Index i = 0 ; i < size ; ++i)
45 template <
typename ValueType_>
46 void Axpy::value_blocked_generic(ValueType_ * r,
const ValueType_ a,
const ValueType_ *
const x,
const Index size)
48 FEAT_PRAGMA_OMP(parallel
for)
49 for (
Index i = 0 ; i < size ; ++i)
51 for(
int j(0); j < ValueType_::n; ++j)
52 r[i][j] += a[j] * x[i][j];
std::uint64_t Index
Index data type.