12#include <dolfinx/common/MPI.h>
84 "check the converged reason - positive on convergence, negative on "
85 "divergence")]] EPSConvergedReason
106 void get_eigenpair(PetscScalar& lr, PetscScalar& lc, Vec r, Vec c,
126 MPI_Comm
comm()
const;
std::complex< PetscReal > get_eigenvalue(PetscInt i) const
Get the ith eigenvalue.
Definition slepc.cpp:95
std::string get_options_prefix() const
Definition slepc.cpp:132
~SLEPcEigenSolver()
Destructor.
Definition slepc.cpp:43
void set_options_prefix(std::string_view options_prefix)
Definition slepc.cpp:124
void set_from_options() const
Set options from the PETSc options database.
Definition slepc.cpp:141
MPI_Comm comm() const
Return MPI communicator.
Definition slepc.cpp:149
void set_operators(const Mat A, const Mat B)
Set the operators defining the eigenvalue problem.
Definition slepc.cpp:58
EPSConvergedReason solve()
Solve the eigenvalue problem (or ).
Definition slepc.cpp:65
void get_eigenpair(PetscScalar &lr, PetscScalar &lc, Vec r, Vec c, PetscInt i) const
Get the ith eigenpair.
Definition slepc.cpp:113
SLEPcEigenSolver(MPI_Comm comm)
Create eigenvalue solver.
Definition slepc.cpp:20
EPS eps() const
Return SLEPc EPS pointer.
Definition slepc.cpp:147
Linear algebra interface.
Definition dolfinx_la.h:7