Convenience functions to sort the columns of a matrix in an increasing way.
sort_each_col(A)sort_index_each_col(A)
Arguments
A: a matrix of arbitrary dimensions.
Returns
A matrix with the same dimensions as A such that each column is sorted increasingly (for sort_each_col) or contains the sorting indexes (for sort_index_each_col). sort_index_each_col.