powered by
"SparseplusLowRank"
A structured matrix made up of a sparse part plus a low-rank part, all which can be stored and operated on efficiently.
Objects can be created by calls of the form new("SparseplusLowRank", ...) or by a call to splr
new("SparseplusLowRank", ...)
splr
Object of class "sparseMatrix"
"sparseMatrix"
Object of class "matrix"
"matrix"
%*%
signature(x = "ANY", y = "SparseplusLowRank"): ...
signature(x = "ANY", y = "SparseplusLowRank")
signature(x = "SparseplusLowRank", y = "ANY"): ...
signature(x = "SparseplusLowRank", y = "ANY")
signature(x = "Matrix", y = "SparseplusLowRank"): ...
signature(x = "Matrix", y = "SparseplusLowRank")
signature(x = "SparseplusLowRank", y = "Matrix"): ...
signature(x = "SparseplusLowRank", y = "Matrix")
as.matrix
signature(x = "SparseplusLowRank"): ...
signature(x = "SparseplusLowRank")
colMeans
colSums
dim
norm
signature(x = "SparseplusLowRank", type = "character"): ...
signature(x = "SparseplusLowRank", type = "character")
rowMeans
rowSums
svd.als
Trevor Hastie and Rahul Mazumder
softImpute,splr
softImpute
showClass("SparseplusLowRank") x=matrix(sample(c(3,0),15,replace=TRUE),5,3) x=as(x,"sparseMatrix") a=matrix(rnorm(10),5,2) b=matrix(rnorm(6),3,2) new("SparseplusLowRank",x=x,a=a,b=b) splr(x,a,b)
Run the code above in your browser using DataLab