powered by
Extract a specified submatrix from a sparse matrix rapidly
submatrix(m, rows, cols)
The matrix
The integer vectors of row index(es)
The integer vectors of column index(es)
This function will return the specified submatrix as a matrix of corresponding type.
This function implements faster submatrix extraction algorithm for the CsparseMatrix class in the package Matrix.
CsparseMatrix