fedoo.problem.LinearBuckling.set_solver

LinearBuckling.set_solver(solver='auto', *, which=None, tol=0.0, maxiter=None, ncv=None)

Configure the symmetric generalized eigensolver.

Parameters:
  • solver ({"auto", "eigsh", "eigh"}, default="auto") – "auto" retains the problem’s automatic sparse/dense selection, "eigsh" forces SciPy’s sparse ARPACK solver, and "eigh" forces SciPy’s dense symmetric solver.

  • which (str, optional) – ARPACK eigenvalue selection used by eigsh. If omitted, solve selects a problem-specific default based on whether sigma is set.

  • tol (optional) – Parameters forwarded to scipy.sparse.linalg.eigsh() when the sparse solver is selected. They are retained but unused by a dense solve.

  • maxiter (optional) – Parameters forwarded to scipy.sparse.linalg.eigsh() when the sparse solver is selected. They are retained but unused by a dense solve.

  • ncv (optional) – Parameters forwarded to scipy.sparse.linalg.eigsh() when the sparse solver is selected. They are retained but unused by a dense solve.