scikit-learn 0.23.2 Other versions
Please cite us if you use the software.
sklearn.utils.sparsefuncs
sklearn.utils.sparsefuncs.
inplace_swap_row
Swaps two rows of a CSC/CSR matrix in-place.
Matrix whose two rows are to be swapped.
Index of the row of X to be swapped.