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;

Computes vector update \(y_i \leftarrow y_i + \alpha x_i\) (BLAS AXPY).