Spectra::JDSymEigsBase< Derived, OpType > Class Template Reference

Description

template<typename Derived, typename OpType>
class Spectra::JDSymEigsBase< Derived, OpType >

This is the base class for symmetric JD eigen solvers, mainly for internal use. It is kept here to provide the documentation for member functions of concrete eigen solvers such as DavidsonSymEigsSolver.

This class uses the CRTP method to call functions from the derived class.

#include <JDSymEigsBase.h>

Public Member Functions

 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())
 

Protected Types

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

const OpType & m_matrix_operator
 
Index niter_ = 0
 
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

◆ info()

template<typename Derived , typename OpType >
CompInfo Spectra::JDSymEigsBase< Derived, OpType >::info ( ) const
inline

Returns the status of the computation.

The full list of enumeration values can be found in Enumerations.


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