Mirrors RSpectra::eigs_sym(): only the lower (or upper) triangle of a
dense or Matrix input is read, values are returned in decreasing order,
and sigma requests the eigenvalues nearest the shift.
Usage
eigs_sym(
A,
k,
which = "LM",
sigma = NULL,
opts = list(),
lower = TRUE,
...,
n = NULL,
args = NULL
)Arguments
- A
Matrix, eigencore operator, or a function
f(x, args)returningA %*% x(thennis required).- k
Number of eigenpairs to compute.
- which
RSpectra-style target selector (
"LM","SM","LA","SA","BE").- sigma
Optional shift; eigenvalues nearest
sigmaare returned.- opts
RSpectra options list.
tol,ncv(Krylov subspace size, passed asauto(max_subspace = ncv), orlanczos(max_subspace = ncv)wheninitvecforces a Lanczos route),maxitr(passed as the iteration limitmaxit),retvecandinitvecare honoured; other keys raise a warning.- lower
Whether to read the lower (
TRUE) or upper (FALSE) triangle of a matrix input.- ...
Additional arguments passed to
eig_partial().- n
Dimension of the operator when
Ais a function.- args
Extra argument passed to a function
A.
Value
A list compatible with RSpectra::eigs_sym(), including values,
vectors, convergence counts, operation counts, certificate diagnostics,
and eigencore diagnostics.