lexsort: Sort a matrix into lexicographical order

Description Usage Arguments Details Value Examples

Description

Sort a matrix into lexicographical order

Usage

1

Arguments

x

a matrix or arrayvec object

...

other parameters

Details

Sorts a range of tuples into lexicographical order.

Value

the input type sorted

Examples

1
2
3
4
if (has_cxx17()) {
x = lex_sort(matrix(runif(200), 100))
plot(x, type = "o", pch = 19, col = "steelblue", asp = 1)
}

kdtools documentation built on Oct. 8, 2021, 9:07 a.m.