svd_like {LRMF3}R Documentation

Create a SVD-like low rank matrix factorization object

Description

A low rank matrix factorization of a matrix X is parameterized by ⁠X ~= u %*% diag(d) %*% t(v)⁠. The object is "svd-like" because the middle matrix in the decomposition must be strictly diagonal.

Usage

svd_like(u, d, v, subclasses = NULL, ...)

Arguments

u

A matrix "left singular-ish" vectors.

d

A vector of "singular-ish" values.

v

A matrix of "right singular-ish" vectors.

subclasses

A character vector of subclasses. Optional, defaults to NULL.

...

Optional additional items to pass to the constructor.

Examples


s <- svd(as.matrix(trees))

# using the constructor directly
svd_like(s$u, s$d, s$v)

# coercing svd-like lists
as_svd_like(s)


[Package LRMF3 version 0.1.0 Index]