torch.svd_lowrank
- torch.svd_lowrank(A, q=6, niter=2, M=None)
Return the singular value decomposition
(U, S, V)of a matrix, batches of matrices, or a sparse matrix such that . In case is given, then SVD is computed for the matrix .
Return the singular value decomposition (U, S, V) of a matrix,
batches of matrices, or a sparse matrix such that
. In case is given, then
SVD is computed for the matrix .
A (Tensor): the input tensor of size
q (int, optional): a slightly overestimated rank of A.
conduct; niter must be a nonnegative integer, and defaults to 2
, which will be broadcasted to the size of A in this function.
Nathan Halko, Per-Gunnar Martinsson, and Joel Tropp, Finding structure with randomness: probabilistic algorithms for constructing approximate matrix decompositions, arXiv:0909.4061 [math.NA; math.PR], 2009 (available at arXiv).