
Last chance! 50% off unlimited learning
Sale ends in
print(x, ...)
summary(object, ...)
spam
or spam.chol.
method.spam
or spam.chol.
method.print.default
.NULL
, because the information is printed with cat
there
is no real need to pass any object back. We also do not see the need
of defining a summary.spam
class with a proper print
method.spam.getOption('printsize')
determines if the sparse matrix is
coerced into a matrix and the printed as an array or if
only the non-zero elements of the matrix are given.spam.options
set.seed(14)
nz <- 8
ln <- nz
smat <- spam(0,ln,ln)
tt <- cbind(sample(ln,nz),sample(ln,nz))
print(tt)
smat[tt] <- 1:nz
par(mfcol=c(1,2),pty='s')spam.options(printsize=1000)
print(smat)spam.options(printsize=10)
print(smat)
summary(smat)
Run the code above in your browser using DataLab