Skip to content

num::kernel::argmax_abs

Defined in header <kernel/vector.hpp>

template <std::floating_point T>
idx argmax_abs(const T *x, idx n) noexcept;

Returns index of element with maximum absolute value \(\arg\max_i |x_i|\) in vector \(\mathbf{x}\).