Singular value decomposition. Equivalent to R's svd().
Uses the Golub-Reinsch algorithm, while R uses LAPACK's dgesdd. Singular values agree with R up to
rounding, but the signs of singular vectors may differ from R (both are correct); for repeated singular
values the vectors may span the same subspace with a different basis. Singular vectors beyond
min(nrow, ncol) are a basis of the orthogonal complement and do not match R. Throws on NaN or infinite values.
Singular value decomposition. Equivalent to R's
svd().Uses the Golub-Reinsch algorithm, while R uses LAPACK's
dgesdd. Singular values agree with R up to rounding, but the signs of singular vectors may differ from R (both are correct); for repeated singular values the vectors may span the same subspace with a different basis. Singular vectors beyondmin(nrow, ncol)are a basis of the orthogonal complement and do not match R. Throws onNaNor infinite values.