7#ifndef KERNEL_LAFEM_ARCH_MAX_REL_DIFF_GENERIC_HPP 
    8#define KERNEL_LAFEM_ARCH_MAX_REL_DIFF_GENERIC_HPP 1 
   10#ifndef KERNEL_LAFEM_ARCH_MAX_REL_DIFF_HPP 
   11#error "Do not include this implementation-only header file directly!" 
   14#include <kernel/util/math.hpp> 
   22      template <
typename DT_>
 
   23      DT_ MaxRelDiff::value_generic(
const DT_ * 
const x, 
const DT_ * 
const y, 
const Index size)
 
   26        static DT_ 
eps = Math::eps<DT_>();
 
   29        for (
Index i(0) ; i < size ; ++i)
 
T_ abs(T_ x)
Returns the absolute value.
T_ max(T_ a, T_ b)
Returns the maximum of two values.
T_ eps()
Returns the machine precision constant for a floating-point data type.
std::uint64_t Index
Index data type.