sparse_subset: sparse_subset

sparse_subsetR Documentation

sparse_subset

Description

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

Usage

sparse_subset(A, B, strict = FALSE, chunksize = 100, quiet = FALSE)

sparse_subset(A, B, strict = FALSE, chunksize = 100, quiet = FALSE)

Arguments

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)

Value

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

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.