pyFM.mesh.laplacian.laplacian_spectrum¶
- pyFM.mesh.laplacian.laplacian_spectrum(W, A, spectrum_size=200)¶
Solve the generalized eigenvalue problem W @ x = lambda * A @ x.
Change solver if necessary.
- Parameters:
W ((n, n) scipy.sparse) – Sparse matrix of cotangent weights.
A ((n, n) scipy.sparse) – Sparse matrix of area weights.
spectrum_size (int) – Number of eigenvalues to compute.
- Returns:
eigenvalues ((spectrum_size,) np.ndarray) – Array of eigenvalues.
eigenvectors ((n, spectrum_size) np.ndarray) – Array of eigenvectors.