Learn R Programming

destiny (version 2.0.4)

eig_decomp: Fast eigen decomposition using ARPACK

Description

Fast eigen decomposition using ARPACK

Usage

eig_decomp(M, n_eigs, sym = isSymmetric(M))

Arguments

M
A matrix (e.g. from the Matrix package)
n_eigs
Number of eigenvectors to return
sym
TRUE if M is symmetric

Value

n eigenvectors of the transition matrix

Examples

Run this code
eig_decomp(cbind(c(1,-1), c(-1,1)), 2)

Run the code above in your browser using DataLab