Spectra::GenEigsComplexShiftSolver< OpType > Class Template Reference
Description
template<typename OpType = DenseGenComplexShiftSolve<double>>
class Spectra::GenEigsComplexShiftSolver< OpType >
This class implements the eigen solver for general real matrices with a complex 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.
- Template Parameters
-
OpType The name of the matrix operation class. Users could either use the wrapper classes such as DenseGenComplexShiftSolve and SparseGenComplexShiftSolve, or define their own that implements the type definition Scalarand all the public member functions as in DenseGenComplexShiftSolve.
#include <GenEigsComplexShiftSolver.h>
Inheritance diagram for Spectra::GenEigsComplexShiftSolver< OpType >:

Collaboration diagram for Spectra::GenEigsComplexShiftSolver< OpType >:

Public Member Functions | |
| GenEigsComplexShiftSolver (OpType &op, Index nev, Index ncv, const Scalar &sigmar, const Scalar &sigmai) | |
| Constructor to create a eigen solver object using the shift-and-invert mode. More... | |
Public Member Functions inherited from Spectra::GenEigsBase< DenseGenComplexShiftSolve< double >, IdentityBOp > | |
| void | init (const Scalar *init_resid) |
| Initializes the solver by providing an initial residual vector. More... | |
| void | init () |
| Initializes the solver by providing a random initial residual vector. More... | |
| Index | compute (SortRule selection=SortRule::LargestMagn, Index maxit=1000, RealScalar tol=1e-10, SortRule sorting=SortRule::LargestMagn) |
| Conducts the major computation procedure. More... | |
| CompInfo | info () const |
| Returns the status of the computation. More... | |
| Index | num_iterations () const |
| Returns the number of iterations used in the computation. | |
| Index | num_operations () const |
| Returns the number of matrix operations used in the computation. | |
| ComplexVector | eigenvalues () const |
| Returns the converged eigenvalues. More... | |
| ComplexMatrix | eigenvectors (Index nvec) const |
| Returns the eigenvectors associated with the converged eigenvalues. More... | |
| ComplexMatrix | eigenvectors () const |
| Returns all converged eigenvectors. | |
Additional Inherited Members | |
Protected Attributes inherited from Spectra::GenEigsBase< DenseGenComplexShiftSolve< double >, IdentityBOp > | |
| DenseGenComplexShiftSolve< double > & | m_op |
| const Index | m_n |
| const Index | m_nev |
| const Index | m_ncv |
| Index | m_nmatop |
| Index | m_niter |
| ArnoldiFac | m_fac |
| ComplexVector | m_ritz_val |
| ComplexMatrix | m_ritz_vec |
| ComplexVector | m_ritz_est |
Constructor & Destructor Documentation
◆ GenEigsComplexShiftSolver()
template<typename OpType = DenseGenComplexShiftSolve<double>>
|
inline |
Constructor to create a eigen solver object using the shift-and-invert mode.
- Parameters
-
op The matrix operation object that implements the complex shift-solve operation of \(A\): calculating \(\mathrm{Re}\{(A-\sigma I)^{-1}v\}\) for any vector \(v\). Users could either create the object from the wrapper class such as DenseGenComplexShiftSolve, or define their own that implements all the public members as in DenseGenComplexShiftSolve. nev Number of eigenvalues requested. This should satisfy \(1\le nev \le n-2\), where \(n\) is the size of matrix. ncv Parameter that controls the convergence speed of the algorithm. Typically a larger ncvmeans faster convergence, but it may also result in greater memory use and more matrix operations in each iteration. This parameter must satisfy \(nev+2 \le ncv \le n\), and is advised to take \(ncv \ge 2\cdot nev + 1\).sigmar The real part of the shift. sigmai The imaginary part of the shift.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/GenEigsComplexShiftSolver.h
Public Member Functions inherited from