Description
template<typename OpType>
class Spectra::DavidsonSymEigsSolver< OpType >
This class implement the DPR correction for the Davidson algorithms. The algorithms in the Davidson family only differ in how the correction vectors are computed and optionally in the initial orthogonal basis set.
the DPR correction compute the new correction vector using the following expression:
\[ correction = -(\boldsymbol{D} - \rho \boldsymbol{I})^{-1} \boldsymbol{r} \]
where \(D\) is the diagonal of the target matrix, \(\rho\) the Ritz eigenvalue, \(I\) the identity matrix and \(r\) the residue vector.
#include <DavidsonSymEigsSolver.h>


Public Member Functions | |
| DavidsonSymEigsSolver (OpType &op, Index nev, Index nvec_init, Index nvec_max) | |
| DavidsonSymEigsSolver (OpType &op, Index nev) | |
| Matrix | setup_initial_search_space (SortRule selection) const |
| Create initial search space based on the diagonal and the spectrum'target (highest or lowest) More... | |
| Matrix | calculate_correction_vector () const |
| Compute the corrections using the DPR method. More... | |
Public Member Functions inherited from Spectra::JDSymEigsBase< DavidsonSymEigsSolver< OpType >, OpType > | |
| JDSymEigsBase (OpType &op, Index nev, Index nvec_init, Index nvec_max) | |
| JDSymEigsBase (OpType &op, Index nev) | |
| void | set_max_search_space_size (Index max_search_space_size) |
| Sets the Maxmium SearchspaceSize after which is deflated. | |
| void | set_correction_size (Index correction_size) |
| Sets how many correction vectors are added in each iteration. | |
| void | set_initial_search_space_size (Index initial_search_space_size) |
| Sets the Initial SearchspaceSize for Ritz values. | |
| virtual | ~JDSymEigsBase () |
| Virtual destructor. | |
| CompInfo | info () const |
| Returns the status of the computation. More... | |
| Index | num_iterations () const |
| Returns the number of iterations used in the computation. | |
| Vector | eigenvalues () const |
| Matrix | eigenvectors () const |
| Index | compute (SortRule selection=SortRule::LargestMagn, Index maxit=100, Scalar tol=100 *Eigen::NumTraits< Scalar >::dummy_precision()) |
| Index | compute_with_guess (const Eigen::Ref< const Matrix > &initial_space, SortRule selection=SortRule::LargestMagn, Index maxit=100, Scalar tol=100 *Eigen::NumTraits< Scalar >::dummy_precision()) |
Additional Inherited Members | |
Protected Types inherited from Spectra::JDSymEigsBase< DavidsonSymEigsSolver< OpType >, OpType > | |
| using | Index = Eigen::Index |
| using | Scalar = typename OpType::Scalar |
| using | Matrix = Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > |
| using | Vector = Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > |
Protected Attributes inherited from Spectra::JDSymEigsBase< DavidsonSymEigsSolver< OpType >, OpType > | |
| const OpType & | m_matrix_operator |
| Index | niter_ |
| const Index | m_number_eigenvalues |
| Index | m_max_search_space_size |
| Index | m_initial_search_space_size |
| Index | m_correction_size |
| RitzPairs< Scalar > | m_ritz_pairs |
| SearchSpace< Scalar > | m_search_space |
Member Function Documentation
◆ calculate_correction_vector()
|
inline |
Compute the corrections using the DPR method.
- Returns
- New correction vectors.
◆ setup_initial_search_space()
|
inline |
Create initial search space based on the diagonal and the spectrum'target (highest or lowest)
- Parameters
-
selection Spectrum section to target (e.g. lowest, etc.)
- Returns
- Matrix with the initial orthonormal basis
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/DavidsonSymEigsSolver.h
Public Member Functions inherited from