eig_decomp: Fast eigen decomposition using 'eigs'

View source: R/eig_decomp.r

eig_decompR Documentation

Fast eigen decomposition using eigs

Description

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

Usage

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

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


theislab/destiny documentation built on Nov. 19, 2024, 5:43 a.m.