R/kdtools.R
lexsort.Rd
Sort a matrix into lexicographical order
lex_sort(x, ...)
a matrix or arrayvec object
other parameters
the input type sorted
Sorts a range of tuples into lexicographical order. This function only exists for demonstration purposes.
if (has_cxx17()) { x = lex_sort(matrix(runif(200), 100)) plot(x, type = "o", pch = 19, col = "steelblue", asp = 1) }