View source: R/compatibility.R
| svds | R Documentation |
RSpectra-compatible SVD shim.
svds(A, k, nu = k, nv = k, opts = list(), ...)
A |
Matrix or eigencore operator. |
k |
Number of singular values to compute. |
nu |
Number of left singular vectors requested. |
nv |
Number of right singular vectors requested. |
opts |
Compatibility options list; currently accepted for API compatibility and not interpreted directly. |
... |
Additional arguments passed to |
A list compatible with RSpectra::svds(), including d, optional
u and v, convergence counts, operation counts, certificate
diagnostics, and eigencore diagnostics.
set.seed(1)
X <- matrix(rnorm(60), 10, 6)
res <- svds(X, k = 2)
res$d
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.