RSpectra-compatible SVD shim.
Usage
svds(
A,
k,
nu = k,
nv = k,
opts = list(),
...,
Atrans = NULL,
dim = NULL,
args = NULL
)Arguments
- A
Matrix, eigencore operator, or a function
f(x, args)returningA %*% x(thenAtransanddimare required).- k
Number of singular values to compute.
- nu
Number of left singular vectors returned.
- nv
Number of right singular vectors returned.
- opts
RSpectra options list.
tol,centerandscaleare honoured (center/scaleare applied as operators, without densifying);ncvis passed asauto(max_subspace = ncv)(used by the Golub-Kahan and implicit-Gram Lanczos routes; the explicit Gram route has no Krylov subspace).maxitris accepted but not used, sincesvd_partial()has no iteration limit yet; other keys raise a warning.- ...
Additional arguments passed to
svd_partial().- Atrans
Function
f(x, args)returningt(A) %*% xwhenAis a function.- dim
Dimensions of
AwhenAis a function.- args
Extra argument passed to function inputs.
Value
A list compatible with RSpectra::svds(), including d, optional
u and v, convergence counts, operation counts, certificate
diagnostics, and eigencore diagnostics.