submatrix: Extract a submatrix from a matrix

Description Usage Arguments Details Value

View source: R/utils.R

Description

Extract a specified submatrix from a sparse matrix rapidly

Usage

1
submatrix(m, rows, cols)

Arguments

m

The matrix

rows

The integer vectors of row index(es)

cols

The integer vectors of column index(es)

Details

This function implements faster submatrix extraction algorithm for the CsparseMatrix class in the package Matrix.

Value

This function will return the specified submatrix as a matrix of corresponding type.


Corbi documentation built on May 31, 2017, 2:02 a.m.

Search within the Corbi package
Search all R packages, documentation and source code