This API interchanges two columns in an input matrix.
API signature:
gswapColumns( order, M, N, i, j, A, LDA )
gswapColumns.ndarray( M, N, i, j, A, strideA1, strideA2, offsetA )
For column-major, this should be a straightforward wrapper around gswap after computing the respective offsets (i.e., index of the first indexed elements for each column). For row-major, one should iterate across rows and swap individual elements.
We can likely support negative i and j which, if negative, should be normalized to i = N + i and j = N + j, respectively.
Follow on Work
Once this RFC is completed, the following packages can be added:
This API interchanges two columns in an input matrix.
API signature:
For column-major, this should be a straightforward wrapper around
gswapafter computing the respective offsets (i.e., index of the first indexed elements for each column). For row-major, one should iterate across rows and swap individual elements.We can likely support negative
iandjwhich, if negative, should be normalized toi = N + iandj = N + j, respectively.Follow on Work
Once this RFC is completed, the following packages can be added:
blas/ext/base/dswap-columnsblas/ext/base/sswap-columnsblas/ext/base/cswap-columnsblas/ext/base/zswap-columns