#include <GenEigsRealShiftSolver.h>
Public Member Functions | |
GenEigsRealShiftSolver (OpType &op, Index nev, Index ncv, const Scalar &sigma) | |
![]() | |
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 | Base = GenEigsBase< OpType, IdentityBOp > |
using | Complex = std::complex< Scalar > |
using | ComplexArray = Eigen::Array< Complex, Eigen::Dynamic, 1 > |
using | Index = Eigen::Index |
using | Scalar = typename OpType::Scalar |
Private Member Functions | |
void | sort_ritzpair (SortRule sort_rule) override |
Private Attributes | |
const Index | m_nev |
ComplexVector | m_ritz_val |
const Scalar | m_sigma |
Additional Inherited Members | |
![]() | |
ArnoldiFac | m_fac |
const Index | m_n |
const Index | m_ncv |
const Index | m_nev |
Index | m_niter |
Index | m_nmatop |
DenseGenRealShiftSolve< 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 with a real shift value in the shift-and-invert mode. The background knowledge of the shift-and-invert mode can be found in the documentation of the SymEigsShiftSolver class.
OpType | The name of the matrix operation class. Users could either use the wrapper classes such as DenseGenRealShiftSolve and SparseGenRealShiftSolve, or define their own that implements the type definition Scalar and all the public member functions as in DenseGenRealShiftSolve. |
Definition at line 33 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 41 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 38 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 39 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 37 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 36 of file GenEigsRealShiftSolver.h.
|
inline |
Constructor to create a eigen solver object using the shift-and-invert mode.
op | The matrix operation object that implements the shift-solve 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 ![]() ![]() |
sigma | The real-valued shift. |
Definition at line 75 of file GenEigsRealShiftSolver.h.
|
inlineoverrideprivatevirtual |
Reimplemented from Spectra::GenEigsBase< DenseGenRealShiftSolve< double >, IdentityBOp >.
Definition at line 48 of file GenEigsRealShiftSolver.h.
|
private |
Definition at line 63 of file GenEigsBase.h.
|
private |
Definition at line 70 of file GenEigsBase.h.
|
private |
Definition at line 45 of file GenEigsRealShiftSolver.h.