R/is_sparse_matrix.R

Defines functions is_sparse_matrix

is_sparse_matrix <- function(X) {
    methods::is(X, "sparseMatrix") |
        methods::is(X, "dgCMatrix") |
        methods::is(X, "dgRMatrix") |
        methods::is(X, "dgTMatrix") |
        methods::is(X, "dgeMatrix") |
        methods::is(X, "lgCMatrix")
}
RajLabMSSM/echoLD documentation built on May 12, 2024, 3:23 a.m.