Spectra::RitzPairs< Scalar > Class Template Reference
Description
template<typename Scalar>
class Spectra::RitzPairs< Scalar >
This class handles the creation and manipulation of Ritz eigen pairs for iterative eigensolvers such as Davidson, Jacobi-Davidson, etc.
#include <RitzPairs.h>
Public Member Functions | |
| Eigen::ComputationInfo | compute_eigen_pairs (const SearchSpace< Scalar > &search_space) |
| Compute the eigen values/vectors. More... | |
| Index | size () const |
| Returns the size of the ritz eigen pairs. More... | |
| void | sort (SortRule selection) |
| Sort the eigen pairs according to the selection rule. More... | |
| bool | check_convergence (Scalar tol, Index number_eigenvalues) |
| Checks if the algorithm has converged and updates root_converged. More... | |
| const Matrix & | ritz_vectors () const |
| const Vector & | ritz_values () const |
| const Matrix & | small_ritz_vectors () const |
| const Matrix & | residues () const |
| const BoolArray & | converged_eigenvalues () const |
Member Function Documentation
◆ check_convergence()
template<typename Scalar >
|
inline |
Checks if the algorithm has converged and updates root_converged.
- Parameters
-
tol Tolerance for convergence number_eigenvalue Number of request eigenvalues
- Returns
- bool true if all eigenvalues are converged
◆ compute_eigen_pairs()
template<typename Scalar >
| Eigen::ComputationInfo Spectra::RitzPairs< Scalar >::compute_eigen_pairs | ( | const SearchSpace< Scalar > & | search_space | ) |
Compute the eigen values/vectors.
Creates the small space matrix and computes its eigen pairs Also computes the ritz vectors and residues.
- Parameters
-
search_space Instance of the class handling the search space
- Returns
- Eigen::ComputationalInfo Whether small eigenvalue problem worked
- Parameters
-
search_space Instance of the SearchSpace class
◆ size()
template<typename Scalar >
|
inline |
Returns the size of the ritz eigen pairs.
- Returns
- Eigen::Index Number of pairs
◆ sort()
template<typename Scalar >
|
inline |
Sort the eigen pairs according to the selection rule.
- Parameters
-
selection Sorting rule
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/LinAlg/RitzPairs.h