svd | R Documentation |
Compute the singular-value decomposition of a real or complex rectangular matrix.
propack.svd(X, neig = min(m, n), opts = list())
trlan.svd(X, neig = min(m, n), opts = list(), lambda = NULL, U = NULL)
ztrlan.svd(X, neig = min(m, n), opts = list(), lambda = NULL, U = NULL)
X |
the matrix to be decomposed. This can be either normal matrix or 'external matrix' object (e.g. one, created via 'extmat' function). |
neig |
number of desired eigentriples |
opts |
different options for eigensolver. See 'Details' section for more information |
lambda |
set of already computed singular values (used for continuation of the decomposition). |
U |
matrix of already computed eigenvectors (used for continuation of the decomposition). |
These routines provides an interface to two state-of-art implementations of truncated SVD.
PROPACK does this via the implicitly restarted Lanczos bidiagonalization with partial reorthogonalization. nu-TRLAN does the thick-restart Lanczos eigendecomposition of cross-product matrix.
'opts' is a list of different options which can be passed to the routines. Note that by default more or less suitable values for these options are set by the routines automatically.
The options for PROPACK are:
integer, maximum number of iterations.
integer, dimension of Krylov subspace.
integer, number of shifts per restart.
integer. maximum number of restarts.
numeric, tolerance level.
logical, if 'TRUE', provide verbose output.
The options for nu-TRLAN are:
integer, maximum number of iterations.
integer. maximum number of matrix-vector products.
numeric, tolerance level.
integer, verboseness level.
The returned value is a list with components
d |
a vector containing the singular values of 'x' |
u |
a matrix whose columns contain the left singular vectors of 'X' |
v |
a matrix whose columns contain the right singular vectors of 'X' (only for 'propack.svd') |
Wu, K. and Simon, H. (2000). Thick-restart Lanczos method for large symmetric eigenvalue problems. SIAM J. Matrix Anal. Appl. 22, 2, 602-616.
Yamazaki, I., Bai, Z., Simon, H., Wang, L.-W., and Wu, K. (2008). Adaptive projection subspace dimension for the thick restart Lanczos method. Tech. rep., Lawrence Berkeley National Laboratory, University of California, One Cyclotron road, Berkeley, California 94720.
Larsen, R. M. (1998). Efficient algorithms for helioseismic inversion. Ph.D. thesis, University of Aarhus, Denmark.
Korobeynikov, A. (2010) Computation- and space-efficient implementation of SSA. Statistics and Its Interface, Vol. 3, No. 3, Pp. 257-268
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.