8#ifndef KERNEL_LAFEM_ARCH_NORM2_BLOCK_HPP
9#error "Do not include this implementation-only header file directly!"
12#include <kernel/util/math.hpp>
14namespace FEAT::LAFEM::Arch
16 template <
typename ValueType_>
17 ValueType_ Norm2Block::exec_generic_impl(
const ValueType_ *
const x,
const Index size)
21 for (
Index i(0) ; i < size ; ++i)
23 for(
int j = 0; j < ValueType_::n; ++j)
25 r[j] += x[i][j] * x[i][j];
29 for(
int j = 0; j < ValueType_::n; ++j)
T_ sqrt(T_ x)
Returns the square-root of a value.
std::uint64_t Index
Index data type.