Skip to content

num::kernel::swap_rows

Defined in header <kernel/dense.hpp>

template <typename T>
void swap_rows(T *A, idx lda, idx r1, idx r2, idx n) noexcept;

Swaps rows \(r_1 \leftrightarrow r_2\) of length \(n\) in row-major matrix \(A\) with stride lda.