"Crossproducts" SVD.
linalg_cpsvd(x, s, u = NULL, vt = NULL)
x | Input data. The input values are overwritten. |
---|---|
s | Singular values. |
u, vt | The left/right singular vectors. Should both be |
Computes the approximate SVD via the eigenvalue decomposition of
crossprod(x)
if the input is tall/skinny and tcrossprod(x)
otherwise.