
Last chance! 50% off unlimited learning
Sale ends in
unpack(x, ...)
"d?pMatrix"
where "?" is "t" for triangular or "s" for symmetric.Matrix
object containing the full-storage representation of
x
.showMethods("unpack")
to list
the methods for unpack()
.showMethods("unpack")
(cp4 <- chol(Hilbert(4))) # is triangular
tp4 <- as(cp4,"dtpMatrix")# [t]riangular [p]acked
str(tp4)
(unpack(tp4))
## once we have Diagonal() :
unpack(Diagonal( 1:3))
Run the code above in your browser using DataLab