powered by
Perform fast eigendecomposition using RSpectra for large matrices
FastDecompositionLap( laplacianMat = NULL, k_eigen = 25, which = "LM", sigma = NULL, opts = list(), lower = TRUE, ... )
List with eigenvalues (evalues) and eigenvectors (evectors)
Laplacian matrix
Number of eigenvalues to compute (default: 25)
Which eigenvalues to compute ("LM", "SM", etc.)
Shift parameter for eigenvalue computation
Additional options for eigenvalue computation
Whether to compute from lower end of spectrum
Additional arguments
# \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