Spectra::SearchSpace< Scalar > Class Template Reference

Description

template<typename Scalar>
class Spectra::SearchSpace< Scalar >

This class handles the creation and manipulation of the search space for iterative eigensolvers such as Davidson, Jacobi-Davidson, etc.

#include <SearchSpace.h>

Public Member Functions

Index size () const
 Returns the current size of the search space.
 
void initialize_search_space (const Eigen::Ref< const Matrix > &initial_vectors)
 
template<typename OpType >
void update_operator_basis_product (OpType &op)
 Updates the matrix formed by the operator applied to the search space after the addition of new vectors in the search space. More...
 
void restart (const RitzPairs< Scalar > &ritz_pairs, Index size)
 Restart the search space by reducing the basis vector to the last Ritz eigenvector. More...
 
void extend_basis (const Matrix &new_vect)
 Append new vectors to the search space and orthogonalize the resulting matrix. More...
 
const Matrix & basis_vectors () const
 Returns the basis vectors.
 
const Matrix & operator_basis_product () const
 Returns the operator applied to basis vector.
 

Member Function Documentation

◆ extend_basis()

template<typename Scalar >
void Spectra::SearchSpace< Scalar >::extend_basis ( const Matrix &  new_vect)
inline

Append new vectors to the search space and orthogonalize the resulting matrix.

Parameters
new_vectMatrix of new correction vectors

◆ restart()

template<typename Scalar >
void Spectra::SearchSpace< Scalar >::restart ( const RitzPairs< Scalar > &  ritz_pairs,
Index  size 
)
inline

Restart the search space by reducing the basis vector to the last Ritz eigenvector.

Parameters
ritz_pairInstance of a RitzPair class
sizeSize of the restart

◆ update_operator_basis_product()

template<typename Scalar >
template<typename OpType >
void Spectra::SearchSpace< Scalar >::update_operator_basis_product ( OpType &  op)
inline

Updates the matrix formed by the operator applied to the search space after the addition of new vectors in the search space.

Only the product of the operator with the new vectors is computed and the result is appended to the op_basis_product member variable

Parameters
OpTypeOperator representing the matrix

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