Learn R Programming

scidb (version 1.1-2)

svd: svd

Description

Compute a partial or full singular value decomposition of a SciDB matrix.

Usage

## S3 method for class 'scidb':
svd(x, nu, nv)

Arguments

x
A scidb object representing a matrix.
nu
Optional number of singular values/vectors to compute. See notes below.
nv
Not used.

Value

  • A list of three scidb objects corresponding to a matrix of left singular vectors, a vector of singular values, and a matrix of transposed right singular vectors, respectively.

See Also

scidb

Examples

Run this code
x <- as.scidb(matrix(rnorm(500*500),500))
y <- svd(x)
print(y)

Run the code above in your browser using DataLab