sort_each_col function

Sort the columns of a matrix

Sort the columns of a matrix

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.

  • Maintainer: Eduardo García-Portugués
  • License: GPL-3
  • Last published: 2024-05-24