read.matrix.hb(filename)
write.matrix.hb(filename = "hb.out", X, title, key, mxtype, rhs = NULL,
guess = FALSE, xsol = FALSE, ptrfmt = "(16I5)", indfmt = "(16I5)",
valfmt = "(1P,5D16.9)", rhsfmt = "(1P,5D16.9)")
model.matrix(object, ...)
model.response(data,type)matrix.csc.hb or matrix.ssc.hb
classrhsrhsread.matrix.hb returns a list of class matrix.csc.hb or matrix.ssc.hb depending
on how the coefficient matrix is stored in the file.model.matrix returns the X matrix of class matrix.csr.
The function model.response returns the y vector (or matrix).model.matrix extracts the X matrix component.
The function model.response extracts the y vector (or matrix).slm for sparse version of lm
SparseM.ops for operators on class matrix.csr
SparseM.solve for linear equation solving for class matrix.csr
SparseM.image for image plotting of class matrix.csr
SparseM.ontology for coercion of class matrix.csrread.matrix.hb(system.file("HBdata","lsq.rra",package = "SparseM"))-> hb.o
class(hb.o) # -> [1] "matrix.csc.hb"
model.matrix(hb.o)->X
class(X) # -> "matrix.csr"
dim(X) # -> [1] 1850 712
y <- model.response(hb.o) # extract the rhs
length(y) # [1] 1850Run the code above in your browser using DataLab