SVD: SVD

36-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

## Not run: 
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)

## End(Not run)

MPCR documentation built on Aug. 23, 2026, 5:10 p.m.

Related to SVD in MPCR...