Principal Components Analysis on a GPU
gpuPrcomp.RdPrincipal components of a data matrix, as prcomp computes
them, with the singular value decomposition on the GPU
(gpuSvd).
Usage
gpuPrcomp(x, retx = TRUE, center = TRUE, scale. = FALSE, tol = NULL,
rank. = NULL, precision = getOption("gputools.precision", "single"))Arguments
- x, retx, center, scale., tol, rank.
as for
prcomp.- 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.