Compute the singular value decomposition of an adgeMatrix,
dispatching through the amatrix backend. A fallback method for plain
matrix objects is also provided to preserve base R behaviour
after the generic is promoted to S4.
Value
A list with components d (singular values), u
(left singular vectors, nrow(x) by nu), and v
(right singular vectors, ncol(x) by nv).
Examples
A <- adgeMatrix(matrix(rnorm(12), 4, 3))
s <- svd(A)
length(s$d)
#> [1] 3