7#ifndef KERNEL_LAFEM_ARCH_MAX_INDEX_GENERIC_HPP
8#define KERNEL_LAFEM_ARCH_MAX_INDEX_GENERIC_HPP 1
10#ifndef KERNEL_LAFEM_ARCH_MAX_INDEX_HPP
11#error "Do not include this implementation-only header file directly!"
14#include <kernel/util/math.hpp>
22 template <
typename DT_>
23 Index MaxIndex::value_generic(
const DT_ *
const x,
const Index size)
28 for (
Index i(0) ; i < size ; ++i)
40 template <
typename ValueType_>
41 ValueType_ MaxIndex::value_blocked_generic(
const ValueType_ *
const x,
const Index size)
50 for (
Index i(0) ; i < size ; ++i)
52 for(
int j(0); j < ValueType_::n; ++j)
T_ max(T_ a, T_ b)
Returns the maximum of two values.
std::uint64_t Index
Index data type.