Description Usage Arguments Value Author(s) See Also Examples
create an object of class SparseplusLowRank
which can be
efficiently stored and for which efficient linear algebra operations are possible.
1 |
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
1 2 3 4 5 6 |
Loading required package: Matrix
Loaded softImpute 1.4
An object of class "SparseplusLowRank"
Slot "x":
5 x 3 sparse Matrix of class "dgCMatrix"
[1,] 3 . 3
[2,] . 3 .
[3,] . . .
[4,] 3 . 3
[5,] . . 3
Slot "a":
[,1] [,2]
[1,] 0.4368339 1.3791281
[2,] 0.8201539 0.3603063
[3,] -0.7106896 0.4938978
[4,] -1.9355163 0.6626788
[5,] 2.1920066 -0.6061937
Slot "b":
[,1] [,2]
[1,] -1.2612477 -1.9298740
[2,] -0.8199872 0.7065309
[3,] -1.1710449 0.8309296
An object of class "SparseplusLowRank"
Slot "x":
5 x 3 sparse Matrix of class "dgCMatrix"
[1,] 3 . 3
[2,] . 3 .
[3,] . . .
[4,] 3 . 3
[5,] . . 3
Slot "a":
[,1] [,2]
[1,] 0.4368339 1.3791281
[2,] 0.8201539 0.3603063
[3,] -0.7106896 0.4938978
[4,] -1.9355163 0.6626788
[5,] 2.1920066 -0.6061937
Slot "b":
[,1] [,2]
[1,] -1.2612477 -1.9298740
[2,] -0.8199872 0.7065309
[3,] -1.1710449 0.8309296
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.