num::kernel::dot_norm_sq¶
Defined in header <kernel/vector.hpp>
template <std::floating_point T>
dot_norm_result<T> dot_norm_sq(const T *x, const T *y, idx n) noexcept;
Compute a dot product and a squared norm in one pass: \((x^T y,\ \|y\|_2^2)\).
Defined in header <kernel/vector.hpp>
template <std::floating_point T>
dot_norm_result<T> dot_norm_sq(const T *x, const T *y, idx n) noexcept;
Compute a dot product and a squared norm in one pass: \((x^T y,\ \|y\|_2^2)\).