Skip to content

num::kernel::axpby

Defined in header <kernel/vector.hpp>

template <std::floating_point T>
void axpby(T *y, const T *x, T a, T b, idx n) noexcept;

Scale and add (AXPBY): \(y \leftarrow a x + b y\).