Leading eigenvector decomposition (LEiDA) – C++ / LAPACK backend
Source:R/RcppExports.R
get_leida_cpp.RdInternal workhorse called by get_leida(). For each phase-locking matrix
slice in sync_conn, calls LAPACK dsyev (symmetric eigendecomposition)
and returns only the leading eigenvector.
Details
Differences from the R implementation:
dsyevreturns eigenvalues in ascending order, so the leading eigenvector is the last column of the output (opposite of R'seigen()which is descending).The LAPACK workspace is allocated once and reused across all timepoints.
Sign convention preserved: row sum forced to be non-positive.