Skip to content

num::kernel::swap

Defined in header <kernel/vector.hpp>

template <typename T>
void swap(T *x, T *y, idx n) noexcept;

Swaps vector buffers \(\mathbf{x} \leftrightarrow \mathbf{y}\) of length \(n\) in-place.