pub fn sparse_eig<F>(
matrix: &CsrMatrix<F>,
config: &SparseEigenConfig,
preconditioner: Option<&dyn Preconditioner<F>>,
) -> SparseResult<SparseEigenResult<F>>Expand description
Compute eigenvalues and eigenvectors of a sparse matrix.
This is the primary entry point. It selects the best algorithm based on the configuration and matrix properties.
§Arguments
matrix- Square sparse matrix in CSR formatconfig- Solver configurationpreconditioner- Optional preconditioner (used by LOBPCG)
§Returns
SparseEigenResult with eigenvalues, eigenvectors, and convergence info.