7#ifndef KERNEL_LAFEM_ARCH_MAX_ABS_INDEX_GENERIC_HPP 
    8#define KERNEL_LAFEM_ARCH_MAX_ABS_INDEX_GENERIC_HPP 1 
   10#ifndef KERNEL_LAFEM_ARCH_MAX_ABS_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 MaxAbsIndex::value_generic(
const DT_ * 
const x, 
const Index size)
 
   28        for (
Index i(0) ; i < size ; ++i)
 
   39      template <
typename ValueType_>
 
   40      ValueType_ MaxAbsIndex::value_blocked_generic(
const ValueType_ * 
const x, 
const Index size)
 
   46          for(
int j(0); j < ValueType_::n; ++j)
 
   52        for (
Index i(0) ; i < size ; ++i)
 
   54          for(
int j(0); j < ValueType_::n; ++j)
 
T_ abs(T_ x)
Returns the absolute value.
T_ max(T_ a, T_ b)
Returns the maximum of two values.
std::uint64_t Index
Index data type.