Learn R Programming

BioGSP (version 1.0.0)

FastDecompositionLap: Fast eigendecomposition of Laplacian matrix

Description

Perform fast eigendecomposition using RSpectra for large matrices

Usage

FastDecompositionLap(
  laplacianMat = NULL,
  k_eigen = 25,
  which = "LM",
  sigma = NULL,
  opts = list(),
  lower = TRUE,
  ...
)

Value

List with eigenvalues (evalues) and eigenvectors (evectors)

Arguments

laplacianMat

Laplacian matrix

k_eigen

Number of eigenvalues to compute (default: 25)

which

Which eigenvalues to compute ("LM", "SM", etc.)

sigma

Shift parameter for eigenvalue computation

opts

Additional options for eigenvalue computation

lower

Whether to compute from lower end of spectrum

...

Additional arguments

Examples

Run this code
# \donttest{
# Create a Laplacian matrix and decompose
L <- matrix(c(2, -1, -1, -1, 2, -1, -1, -1, 2), nrow = 3)
decomp <- FastDecompositionLap(L, k_eigen = 2)
# }

Run the code above in your browser using DataLab