#include <GenEigsSolver.h>
Public Member Functions | |
GenEigsSolver (OpType &op, Index nev, Index ncv) | |
![]() | |
Index | compute (SortRule selection=SortRule::LargestMagn, Index maxit=1000, Scalar tol=1e-10, SortRule sorting=SortRule::LargestMagn) |
ComplexVector | eigenvalues () const |
ComplexMatrix | eigenvectors () const |
ComplexMatrix | eigenvectors (Index nvec) const |
CompInfo | info () const |
void | init () |
void | init (const Scalar *init_resid) |
Index | num_iterations () const |
Index | num_operations () const |
Private Types | |
using | Index = Eigen::Index |
Additional Inherited Members | |
![]() | |
virtual void | sort_ritzpair (SortRule sort_rule) |
![]() | |
ArnoldiFac | m_fac |
const Index | m_n |
const Index | m_ncv |
const Index | m_nev |
Index | m_niter |
Index | m_nmatop |
DenseGenMatProd< double > & | m_op |
ComplexVector | m_ritz_est |
ComplexVector | m_ritz_val |
ComplexMatrix | m_ritz_vec |
This class implements the eigen solver for general real matrices, i.e., to solve for a possibly non-symmetric
matrix.
Most of the background information documented in the SymEigsSolver class also applies to the GenEigsSolver class here, except that the eigenvalues and eigenvectors of a general matrix can now be complex-valued.
OpType | The name of the matrix operation class. Users could either use the wrapper classes such as DenseGenMatProd and SparseGenMatProd, or define their own that implements the type definition Scalar and all the public member functions as in DenseGenMatProd. |
An example that illustrates the usage of GenEigsSolver is give below:
And also an example for sparse matrices:
Definition at line 119 of file GenEigsSolver.h.
|
private |
Definition at line 122 of file GenEigsSolver.h.
|
inline |
Constructor to create a solver object.
op | The matrix operation object that implements the matrix-vector multiplication operation of ![]() ![]() ![]() |
nev | Number of eigenvalues requested. This should satisfy ![]() ![]() |
ncv | Parameter that controls the convergence speed of the algorithm. Typically a larger ncv means faster convergence, but it may also result in greater memory use and more matrix operations in each iteration. This parameter must satisfy ![]() ![]() |
Definition at line 142 of file GenEigsSolver.h.