| FastDecompositionLap | R Documentation |
Perform fast eigendecomposition using RSpectra for large matrices
FastDecompositionLap(
laplacianMat = NULL,
k_eigen = 25,
which = "LM",
sigma = NULL,
opts = list(),
lower = TRUE,
...
)
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 |
List with eigenvalues (evalues) and eigenvectors (evectors)
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.