Binarizes a matrix.

binarize(x)

Arguments

x

matrix or simple_triplet_matrix.

Value

a matrix or simple_triplet_matrix (depending on the input).