Go to the documentation of this file.
7 #ifndef SPECTRA_LANCZOS_H
8 #define SPECTRA_LANCZOS_H
26 template <
typename Scalar,
typename ArnoldiOpType>
69 std::string
msg =
"Lanczos: from_k (= " + std::to_string(from_k) +
70 ") is larger than the current subspace dimension (= " + std::to_string(
m_k) +
")";
71 throw std::invalid_argument(
msg);
85 for (
Index i = from_k;
i <= to_m - 1;
i++)
109 restart = (
abs(Viv) > eps_sqrt);
128 m_op.perform_op(
v.data(),
w.data());
150 RealScalar ortho_err = Vf.head(
i1).cwiseAbs().maxCoeff();
177 ortho_err = Vf.head(
i1).cwiseAbs().maxCoeff();
219 #endif // SPECTRA_LANCZOS_H
void factorize_from(Index from_k, Index to_m, Index &op_counter) override
const RealScalar m_near_0
typename Eigen::NumTraits< Scalar >::Real RealScalar
void deflate_H(Index irr_size, const Scalar &s)
void expand_basis(MapConstMat &V, const Index seed, Vector &f, RealScalar &fnorm, Index &op_counter)
A matrix or vector expression mapping an existing array of data.
typename Eigen::NumTraits< Scalar >::Real RealScalar
Array< int, Dynamic, 1 > v
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar * data() const
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
void compress_H(const TridiagQR< RealScalar > &decomp)
Jet< T, N > sqrt(const Jet< T, N > &f)
void matrix_QtHQ(Matrix &dest) const override
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sun Feb 16 2025 04:01:42