splrMatrix-class | R Documentation |
An "S4" class for efficient computation with sparse plus
low-rank matrices. Stores sparse plus low-rank matrices
(e.g. from matrix factorization or centering graphs)
of the form x + a %*% t(b)
for faster
computation.
splr(x, a = NULL, b = NULL, rank = NULL, dimnames = list(NULL, NULL), ...)
## S4 method for signature 'Matrix,Matrix,Matrix'
splr(x, a = NULL, b = NULL, rank = NULL, dimnames = list(NULL, NULL), ...)
x |
as in "Matrix" |
a |
as in "Matrix" |
b |
as in "Matrix" |
rank |
rank of the matrix to be factorized. |
dimnames |
optional - the list of names for the matrix |
... |
as in "Matrix" |
splrMatrix object
splrMatrix object
x
a sparse matrix
a
a low-rank factor or a matrix
b
optional. a low-rank factor for a %*% t(b)
. if b
is not provided, a will be factorized using
irlba
provided factorize = TRUE
Methods are documented in splrMatrix_method. Other relevant methods are splr_sparse_plus_constant and
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.