This matches the syntax and semantics of subset for matrices.
# S3 method for InfinitySparseMatrix
subset(x, subset, select, ...)# S4 method for InfinitySparseMatrix,ANY,ANY,ANY
[(x, i, j = NULL, ..., drop = TRUE)
# S4 method for InfinitySparseMatrix,ANY,ANY,ANY
[(x, i, j) <- value
InfinitySparseMatrix to be subset or bound.
Logical expression indicating rows to keep.
Logical expression indicating columns to keep.
Other arguments are ignored.
Row indices.
Col indices.
Ignored.
replacement values
An InfinitySparseMatrix with only the selected elements.