8#include <kernel/lafem/arch/min_max_value_dense.hpp>
14namespace FEAT::LAFEM::Arch
16 float MinMaxValueDense::exec_mkl_impl(
const float *
const x,
const Index size,
const bool min_,
const bool abs_)
20 return MinMaxValueDense::exec_generic_impl(x, size, min_, abs_);
22 CBLAS_INDEX idx = (min_ ?
23 cblas_isamin(
static_cast<MKL_INT
>(size), x, 1) :
24 cblas_isamax(static_cast<MKL_INT>(size), x, 1));
29 double MinMaxValueDense::exec_mkl_impl(
const double *
const x,
const Index size,
const bool min_,
const bool abs_)
33 return MinMaxValueDense::exec_generic_impl(x, size, min_, abs_);
35 CBLAS_INDEX idx = (min_ ?
36 cblas_idamin(
static_cast<MKL_INT
>(size), x, 1) :
37 cblas_idamax(static_cast<MKL_INT>(size), x, 1));
T_ abs(T_ x)
Returns the absolute value.
std::uint64_t Index
Index data type.