|
inline |
Permutes columns in columns
and thresh
such that the columns with maximal zeroness score are in the front.
Returns a permutation matrix to be multiplied from the right into the permuted matrix to restore the original matrix.
References std::vector< T >::begin(), calculate_scores(), std::vector< T >::end(), std::move(), std::vector< T >::size(), and std::stable_sort().
Referenced by cols_only().