binary_radix_sort {CIMICE}R Documentation

Radix sort for a binary matrix

Description

Sort the rows of a binary matrix in ascending order

Usage

binary_radix_sort(mat)

Arguments

mat

a binary matrix (of 0 and 1)

Value

the sorted matrix

Examples

require(Matrix)
m <- Matrix(c(1,1,0,1,0,0,0,1,1), sparse = TRUE, ncol = 3)
binary_radix_sort(m)


[Package CIMICE version 1.2.1 Index]