template<typename OpType, typename BOpType>
class Spectra::HermEigsBase< OpType, BOpType >
This is the base class for Hermitian (and real symmetric) eigen solvers, mainly for internal use. It is kept here to provide the documentation for member functions of concrete eigen solvers such as SymEigsSolver, HermEigsSolver, SymEigsShiftSolver, etc.
#include <HermEigsBase.h>
|
|
virtual void | sort_ritzpair (SortRule sort_rule) |
| |
|
|
std::vector< OpType > | m_op_container |
| |
|
const OpType & | m_op |
| |
|
const Index | m_n |
| |
|
const Index | m_nev |
| |
|
const Index | m_ncv |
| |
|
Index | m_nmatop |
| |
|
Index | m_niter |
| |
|
LanczosFac | m_fac |
| |
|
RealVector | m_ritz_val |
| |
◆ compute()
template<typename OpType , typename BOpType >
Conducts the major computation procedure.
- Parameters
-
| selection | An enumeration value indicating the selection rule of the requested eigenvalues, for example SortRule::LargestMagn to retrieve eigenvalues with the largest magnitude. The full list of enumeration values can be found in Enumerations. |
| maxit | Maximum number of iterations allowed in the algorithm. |
| tol | Precision parameter for the calculated eigenvalues. |
| sorting | Rule to sort the eigenvalues and eigenvectors. Supported values are SortRule::LargestAlge, SortRule::LargestMagn, SortRule::SmallestAlge, and SortRule::SmallestMagn. For example, SortRule::LargestAlge indicates that largest eigenvalues come first. Note that this argument is only used to sort the final result, and the selection rule (e.g. selecting the largest or smallest eigenvalues in the full spectrum) is specified by the parameter selection. |
- Returns
- Number of converged eigenvalues.
◆ eigenvalues()
template<typename OpType , typename BOpType >
Returns the converged eigenvalues.
- Returns
- A vector containing the real-valued eigenvalues. Returned vector type will be
Eigen::Vector<RealScalar, ...>, depending on the Scalar type defined in the matrix operation class. For example, if Scalar is double or std::complex<double>, then RealScalar would be double.
◆ eigenvectors()
template<typename OpType , typename BOpType >
Returns the eigenvectors associated with the converged eigenvalues.
- Parameters
-
| nvec | The number of eigenvectors to return. |
- Returns
- A matrix containing the eigenvectors. Returned matrix type will be
Eigen::Matrix<Scalar, ...>, depending on the Scalar type defined in the matrix operation class.
◆ info()
template<typename OpType , typename BOpType >
Returns the status of the computation.
The full list of enumeration values can be found in Enumerations.
◆ init() [1/2]
template<typename OpType , typename BOpType >
Initializes the solver by providing a random initial residual vector.
This overloaded function generates a random initial residual vector (with a fixed random seed) for the algorithm. Elements in the vector follow independent Uniform(-0.5, 0.5) distribution.
◆ init() [2/2]
template<typename OpType , typename BOpType >
Initializes the solver by providing an initial residual vector.
- Parameters
-
| init_resid | Pointer to the initial residual vector. |
Spectra (and also ARPACK) uses an iterative algorithm to find eigenvalues. This function allows the user to provide the initial residual vector.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/HermEigsBase.h