11#include "dolfinx/common/MPI.h"
56 void solve(std::int64_t n);
62 void get_eigenpair(PetscScalar& lr, PetscScalar& lc, Vec r, Vec c,
86 MPI_Comm
comm()
const;
This class provides an eigenvalue solver for PETSc matrices. It is a wrapper for the SLEPc eigenvalue...
Definition slepc.h:24
int get_iteration_number() const
Get the number of iterations used by the solver.
Definition slepc.cpp:191
std::int64_t get_number_converged() const
Get the number of converged eigenvalues.
Definition slepc.cpp:157
std::string get_options_prefix() const
Definition slepc.cpp:173
~SLEPcEigenSolver()
Destructor.
Definition slepc.cpp:43
std::complex< PetscReal > get_eigenvalue(int i) const
Get ith eigenvalue.
Definition slepc.cpp:112
void set_from_options() const
Set options from PETSc options database.
Definition slepc.cpp:183
MPI_Comm comm() const
Return MPI communicator.
Definition slepc.cpp:201
void set_operators(const Mat A, const Mat B)
Definition slepc.cpp:55
void set_options_prefix(std::string options_prefix)
Definition slepc.cpp:165
void solve()
Compute all eigenpairs of the matrix A (solve )
Definition slepc.cpp:61
SLEPcEigenSolver(MPI_Comm comm)
Create eigenvalue solver.
Definition slepc.cpp:21
EPS eps() const
Return SLEPc EPS pointer.
Definition slepc.cpp:199
void get_eigenpair(PetscScalar &lr, PetscScalar &lc, Vec r, Vec c, int i) const
Get ith eigenpair.
Definition slepc.cpp:139
Linear algebra interface.
Definition sparsitybuild.h:15