getSVD: Compute the SVD of a matrix using irlba

getSVDR Documentation

Compute the SVD of a matrix using irlba

Description

Compute the SVD of a matrix using irlba

Usage

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

Arguments

matrix

A p x n input matrix

k

Number of singular vectors to return

sing.vec

Whether to return the right or left singular vector

Value

A singular vector or matrix with sign corresponding to positive values

Examples


dummy <- matrix(rnorm(10000), ncol=25)
sing_vec <- getSVD(dummy, k = 1, sing.vec = "right")


biobenkj/compartmentalizer documentation built on Oct. 13, 2023, 5:26 p.m.