splr | R Documentation |
SparseplusLowRank
objectcreate an object of class SparseplusLowRank
which can be efficiently
stored and for which efficient linear algebra operations are possible.
splr(x, a = NULL, b = NULL)
x |
sparse matrix with dimension say m x n |
a |
matrix with m rows and number of columns r less than
|
b |
matrix with n rows and number of columns r less than
|
an object of S4 class SparseplusLowRank
is returned with
slots x
, a
and b
Trevor Hastie
SparseplusLowRank-class
, softImpute
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.