8#ifndef KERNEL_LAFEM_ARCH_MIN_MAX_VALUE_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_ MinMaxValueDense::exec_generic_impl(
const DT_ *
const x,
const Index size,
const bool min_,
const bool abs_)
19 DT_ result(abs_ ?
Math::abs(x[0]) : x[0]);
24 FEAT_PRAGMA_OMP(parallel
for reduction(min:result))
25 for (
Index i = 0 ; i < size ; ++i)
32 FEAT_PRAGMA_OMP(parallel
for reduction(min:result))
33 for (
Index i = 0 ; i < size ; ++i)
43 FEAT_PRAGMA_OMP(parallel
for reduction(max:result))
44 for (
Index i = 0 ; i < size ; ++i)
51 FEAT_PRAGMA_OMP(parallel
for reduction(max:result))
52 for (
Index i = 0 ; i < size ; ++i)
T_ abs(T_ x)
Returns the absolute value.
T_ min(T_ a, T_ b)
Returns the minimum of two values.
T_ max(T_ a, T_ b)
Returns the maximum of two values.
std::uint64_t Index
Index data type.