Skip to content

num::axpy

Defined in header <container/vector_ops.hpp>

void axpy(real alpha, const vec<real> &x, vec<real> &y) noexcept;  // (1)

void axpy(cplx alpha, const vec<cplx> &x, vec<cplx> &y) noexcept;  // (2)

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