Learn R Programming

Matrix (version 0.9975-9)

sparseMatrix-class: Virtual Class "sparseMatrix" --- Mother of Sparse Matrices

Description

Virtual Mother Class of All Sparse Matrices

Arguments

Extends

Class "Matrix", directly.

Examples

Run this code
showClass("sparseMatrix") ## and look at the help() of its subclasses
M <- Matrix(0, 10000, 100)
M[1,1] <- M[2,3] <- 3.14
M
op <- options(max.print = 25000, width = 80)
sink(print(tempfile()))
stopifnot((st <- system.time(show(M)))[1] < 1.0) # only 0.09 on cmath-3
sink()
st
options(op)

Run the code above in your browser using DataLab