Skip to content

num::kernel::axpy_norm_sq

Defined in header <kernel/vector.hpp>

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

Add a multiple of one vector to another and return the new squared norm: \(\|y\|_2^2\).