Singular Value Decomposition on a GPU
gpuSvd.RdThe singular value decomposition of a matrix, as svd
computes it, on the GPU with NVIDIA's cuSOLVER (gesvd).
Arguments
- x
a numeric matrix, without missing or infinite values.
- nu, nv
the number of left and right singular vectors to return, as in
svd; at mostmin(nrow(x), ncol(x)), since the thin decomposition is computed.- precision
"single"or"double": the floating point precision the GPU computes in. Single precision is the default, set withoptions(gputools.precision = "double"); it runs many times faster on most consumer GPUs. Results are returned as doubles either way.