8#ifndef KERNEL_LAFEM_ARCH_MAX_REL_DIFF_DENSE_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 DT_>
17 DT_ MaxRelDiffDense::exec_generic_impl(
const DT_ *
const x,
const DT_ *
const y,
const Index size)
22 for (
Index i(0) ; i < size ; ++i)
30 return (has_nan || has_inf ? Math::nan<DT_>() : r);
bool isinf(T_ x)
Checks whether a value is infinite.
T_ abs(T_ x)
Returns the absolute value.
bool isnan(T_ x)
Checks whether a value is Not-A-Number.
T_ max(T_ a, T_ b)
Returns the maximum of two values.
std::uint64_t Index
Index data type.