Skip to content

num::kernel::axpy

Defined in header <kernel/vector.hpp>

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

Add a multiple of one vector to another (AXPY): \(y \leftarrow \alpha x + y\).