View source: R/compatibility.R
| eigs | R Documentation |
RSpectra-compatible eigen shim.
eigs(A, k, which = "LM", opts = list(), ...)
A |
Matrix or eigencore operator. |
k |
Number of eigenpairs to compute. |
which |
RSpectra-style target selector. |
opts |
Compatibility options list; currently accepted for API compatibility and not interpreted directly. |
... |
Additional arguments passed to |
A list compatible with RSpectra::eigs(), including values,
vectors, convergence counts, operation counts, certificate diagnostics,
and left/right vector fields when available.
A <- diag(c(5, 4, 3, 2, 1))
A[1, 2] <- 0.5
res <- eigs(A, k = 2, which = "LM")
res$values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.