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 >
bool Spectra::RitzPairs< Scalar >::check_convergence ( Scalar  tol,
Index  number_eigenvalues 
)
inline

Checks if the algorithm has converged and updates root_converged.

Parameters
tolTolerance for convergence
number_eigenvalueNumber 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_spaceInstance of the class handling the search space
Returns
Eigen::ComputationalInfo Whether small eigenvalue problem worked
Parameters
search_spaceInstance of the SearchSpace class

◆ size()

template<typename Scalar >
Index Spectra::RitzPairs< Scalar >::size ( ) const
inline

Returns the size of the ritz eigen pairs.

Returns
Eigen::Index Number of pairs

◆ sort()

template<typename Scalar >
void Spectra::RitzPairs< Scalar >::sort ( SortRule  selection)
inline

Sort the eigen pairs according to the selection rule.

Parameters
selectionSorting rule

The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/LinAlg/RitzPairs.h