getSVD: Compute the SVD of a matrix using irlba

Description Usage Arguments Value Examples

Description

Compute the SVD of a matrix using irlba

Usage

1
getSVD(matrix, k = 1, sing.vec = c("left", "right"))

Arguments

matrix

A p x n input matrix

k

Number of singular vectors to return

Value

A singular vector or matrix with sign corresponding to positive values

Examples

1
2
3
dummy <- matrix(rnorm(10000), ncol=25)
set.seed(1000)
sing_vec <- getSVD(dummy, k = 1, sing.vec = "left")

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.