sparse_subset | R Documentation |
given k1 x n matrix A and k2 x n matrix B returns k1 x k2 matrix C whose entries ij = 1 if the set of nonzero components of row i of A is a (+/- strict) subset of the nonzero components of row j of B
given k1 x n matrix A and k2 x n matrix B returns k1 x k2 matrix C whose entries ij = 1 if the set of nonzero components of row i of A is a (+/- strict) subset of the nonzero components of row j of B
sparse_subset(A, B, strict = FALSE, chunksize = 100, quiet = FALSE)
sparse_subset(A, B, strict = FALSE, chunksize = 100, quiet = FALSE)
A |
k1 x n matrix |
B |
k2 x n matrix |
strict |
logical flag whether to return strict subset (=FALSE) |
chunksize |
integer size of rows to process from each matrix at a single iteration (=100) |
quiet |
logical flag (=FALSE) |
k1 x k2 matrix C whose entries ij = 1 if the set of nonzero components of row i of A is a (+/- strict) subset of the nonzero components of row j of B
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.