View source: R/compatibility.R
| eigs_sym | R Documentation |
RSpectra-compatible symmetric eigen shim.
eigs_sym(A, k, which = "LA", 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_sym(), including values,
vectors, convergence counts, operation counts, certificate diagnostics,
and eigencore diagnostics.
A <- diag(c(5, 4, 3, 2, 1))
res <- eigs_sym(A, k = 2, which = "LA")
res$values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.