SVD: SVD

37-Singular value decompositionR Documentation

SVD

Description

SVD factorization.

Usage

## S4 method for signature 'Rcpp_MPCR'
La.svd(x, nu = min(n, p), nv = min(n, p))

## S4 method for signature 'Rcpp_MPCR'
svd(x, nu = min(n, p), nv = min(n, p))

Arguments

x

An MPCR matrix.

nu, nv

The number of left/right singular vectors to return.

Details

The factorization is performed by the LAPACK routine gesdd().

Value

The SVD decomposition of the MPCR matrix.

Examples


library(MPCR)
svd_vals <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 1, 1, 1)

x <- as.MPCR(svd_vals,9,4,"single")
y <- svd(x)


MPCR documentation built on April 13, 2025, 5:08 p.m.

Related to SVD in MPCR...