eig_decomp: Fast eigen decomposition using 'eigs'

Description Usage Arguments Value Examples

View source: R/eig_decomp.r

Description

By default uses a random initialization vector that you can make deterministic using set.seed or override by specifying opts = list(initvec = ...).

Usage

1
eig_decomp(M, n_eigs, sym, ..., opts = list())

Arguments

M

A matrix (e.g. from the Matrix package) or a function (see eigs).

n_eigs

Number of eigenvectors to return.

sym

defunct and ignored.

...

Passed to eigs.

opts

Passed to eigs.

Value

see eigs.

Examples

1
eig_decomp(cbind(c(1,0,-1), c(0,1,0), c(-1,0,1)), 2)

destiny documentation built on Nov. 8, 2020, 7:38 p.m.

Related to eig_decomp in destiny...