Skip to content

num::kernel::linf_norm

Defined in header <kernel/vector.hpp>

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

Computes \(L_\infty\) norm \(\|\mathbf{x}\|_\infty = \max_{0 \le i < n} |x_i|\).