Go to the documentation of this file.
7 #ifndef SPECTRA_JD_SYM_EIGS_BASE_H
8 #define SPECTRA_JD_SYM_EIGS_BASE_H
33 template <
typename Derived,
typename OpType>
57 if (m_number_eigenvalues < 1 || m_number_eigenvalues >
m_matrix_operator.cols() - 1)
58 throw std::invalid_argument(
"nev must satisfy 1 <= nev <= n - 1, n is the size of matrix");
136 Derived& derived =
static_cast<Derived&
>(*this);
137 Matrix intial_space = derived.setup_initial_search_space(selection);
174 else if (
niter_ == maxit - 1)
179 Derived& derived =
static_cast<Derived&
>(*this);
180 Matrix corr_vect = derived.calculate_correction_vector();
190 #endif // SPECTRA_JD_SYM_EIGS_BASE_H
void set_max_search_space_size(Index max_search_space_size)
SearchSpace< Scalar > m_search_space
@ Successful
Computation was successful.
typename OpType::Scalar Scalar
Index m_max_search_space_size
void check_argument() const
void set_initial_search_space_size(Index initial_search_space_size)
Matrix eigenvectors() const
Index num_iterations() const
RitzPairs< Scalar > m_ritz_pairs
void set_correction_size(Index correction_size)
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())
const Index m_number_eigenvalues
Index m_initial_search_space_size
JDSymEigsBase(OpType &op, Index nev, Index nvec_init, Index nvec_max)
const OpType & m_matrix_operator
JDSymEigsBase(OpType &op, Index nev)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Vector eigenvalues() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Index compute(SortRule selection=SortRule::LargestMagn, Index maxit=100, Scalar tol=100 *Eigen::NumTraits< Scalar >::dummy_precision())
gtsam
Author(s):
autogenerated on Thu Apr 10 2025 03:01:45