Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
Spectra::Arnoldi< Scalar, ArnoldiOpType > Class Template Reference

#include <Arnoldi.h>

Inheritance diagram for Spectra::Arnoldi< Scalar, ArnoldiOpType >:
Inheritance graph
[legend]

Public Member Functions

 Arnoldi (const ArnoldiOpType &op, Index m)
 
void compress_H (const DoubleShiftQR< Scalar > &decomp)
 
void compress_H (const UpperHessenbergQR< Scalar > &decomp)
 
void compress_V (const Matrix &Q)
 
Scalar f_norm () const
 
virtual void factorize_from (Index from_k, Index to_m, Index &op_counter)
 
void init (MapConstVec &v0, Index &op_counter)
 
const Matrixmatrix_H () const
 
const Matrixmatrix_V () const
 
Index subspace_dim () const
 
const Vectorvector_f () const
 
virtual ~Arnoldi ()
 

Protected Member Functions

void expand_basis (MapConstMat &V, const Index seed, Vector &f, Scalar &fnorm)
 

Protected Attributes

Scalar m_beta
 
const Scalar m_eps
 
Vector m_fac_f
 
Matrix m_fac_H
 
Matrix m_fac_V
 
Index m_k
 
const Index m_m
 
const Index m_n
 
const Scalar m_near_0
 
ArnoldiOpType m_op
 

Private Types

typedef Eigen::Index Index
 
typedef Eigen::Map< const MatrixMapConstMat
 
typedef Eigen::Map< const VectorMapConstVec
 
typedef Eigen::Map< MatrixMapMat
 
typedef Eigen::Map< VectorMapVec
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::DynamicMatrix
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
 

Detailed Description

template<typename Scalar, typename ArnoldiOpType>
class Spectra::Arnoldi< Scalar, ArnoldiOpType >

Definition at line 31 of file Arnoldi.h.

Member Typedef Documentation

◆ Index

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Index Spectra::Arnoldi< Scalar, ArnoldiOpType >::Index
private

Definition at line 34 of file Arnoldi.h.

◆ MapConstMat

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Map<const Matrix> Spectra::Arnoldi< Scalar, ArnoldiOpType >::MapConstMat
private

Definition at line 39 of file Arnoldi.h.

◆ MapConstVec

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Map<const Vector> Spectra::Arnoldi< Scalar, ArnoldiOpType >::MapConstVec
private

Definition at line 40 of file Arnoldi.h.

◆ MapMat

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Map<Matrix> Spectra::Arnoldi< Scalar, ArnoldiOpType >::MapMat
private

Definition at line 37 of file Arnoldi.h.

◆ MapVec

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Map<Vector> Spectra::Arnoldi< Scalar, ArnoldiOpType >::MapVec
private

Definition at line 38 of file Arnoldi.h.

◆ Matrix

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> Spectra::Arnoldi< Scalar, ArnoldiOpType >::Matrix
private

Definition at line 35 of file Arnoldi.h.

◆ Vector

template<typename Scalar , typename ArnoldiOpType >
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Spectra::Arnoldi< Scalar, ArnoldiOpType >::Vector
private

Definition at line 36 of file Arnoldi.h.

Constructor & Destructor Documentation

◆ Arnoldi()

template<typename Scalar , typename ArnoldiOpType >
Spectra::Arnoldi< Scalar, ArnoldiOpType >::Arnoldi ( const ArnoldiOpType &  op,
Index  m 
)
inline

Definition at line 87 of file Arnoldi.h.

◆ ~Arnoldi()

template<typename Scalar , typename ArnoldiOpType >
virtual Spectra::Arnoldi< Scalar, ArnoldiOpType >::~Arnoldi ( )
inlinevirtual

Definition at line 93 of file Arnoldi.h.

Member Function Documentation

◆ compress_H() [1/2]

template<typename Scalar , typename ArnoldiOpType >
void Spectra::Arnoldi< Scalar, ArnoldiOpType >::compress_H ( const DoubleShiftQR< Scalar > &  decomp)
inline

Definition at line 246 of file Arnoldi.h.

◆ compress_H() [2/2]

template<typename Scalar , typename ArnoldiOpType >
void Spectra::Arnoldi< Scalar, ArnoldiOpType >::compress_H ( const UpperHessenbergQR< Scalar > &  decomp)
inline

Definition at line 253 of file Arnoldi.h.

◆ compress_V()

template<typename Scalar , typename ArnoldiOpType >
void Spectra::Arnoldi< Scalar, ArnoldiOpType >::compress_V ( const Matrix Q)
inline

Definition at line 264 of file Arnoldi.h.

◆ expand_basis()

template<typename Scalar , typename ArnoldiOpType >
void Spectra::Arnoldi< Scalar, ArnoldiOpType >::expand_basis ( MapConstMat V,
const Index  seed,
Vector f,
Scalar fnorm 
)
inlineprotected

Definition at line 62 of file Arnoldi.h.

◆ f_norm()

template<typename Scalar , typename ArnoldiOpType >
Scalar Spectra::Arnoldi< Scalar, ArnoldiOpType >::f_norm ( ) const
inline

Definition at line 99 of file Arnoldi.h.

◆ factorize_from()

template<typename Scalar , typename ArnoldiOpType >
virtual void Spectra::Arnoldi< Scalar, ArnoldiOpType >::factorize_from ( Index  from_k,
Index  to_m,
Index op_counter 
)
inlinevirtual

Reimplemented in Spectra::Lanczos< Scalar, ArnoldiOpType >.

Definition at line 146 of file Arnoldi.h.

◆ init()

template<typename Scalar , typename ArnoldiOpType >
void Spectra::Arnoldi< Scalar, ArnoldiOpType >::init ( MapConstVec v0,
Index op_counter 
)
inline

Definition at line 103 of file Arnoldi.h.

◆ matrix_H()

template<typename Scalar , typename ArnoldiOpType >
const Matrix& Spectra::Arnoldi< Scalar, ArnoldiOpType >::matrix_H ( ) const
inline

Definition at line 97 of file Arnoldi.h.

◆ matrix_V()

template<typename Scalar , typename ArnoldiOpType >
const Matrix& Spectra::Arnoldi< Scalar, ArnoldiOpType >::matrix_V ( ) const
inline

Definition at line 96 of file Arnoldi.h.

◆ subspace_dim()

template<typename Scalar , typename ArnoldiOpType >
Index Spectra::Arnoldi< Scalar, ArnoldiOpType >::subspace_dim ( ) const
inline

Definition at line 100 of file Arnoldi.h.

◆ vector_f()

template<typename Scalar , typename ArnoldiOpType >
const Vector& Spectra::Arnoldi< Scalar, ArnoldiOpType >::vector_f ( ) const
inline

Definition at line 98 of file Arnoldi.h.

Member Data Documentation

◆ m_beta

template<typename Scalar , typename ArnoldiOpType >
Scalar Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_beta
protected

Definition at line 53 of file Arnoldi.h.

◆ m_eps

template<typename Scalar , typename ArnoldiOpType >
const Scalar Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_eps
protected

Definition at line 57 of file Arnoldi.h.

◆ m_fac_f

template<typename Scalar , typename ArnoldiOpType >
Vector Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_fac_f
protected

Definition at line 52 of file Arnoldi.h.

◆ m_fac_H

template<typename Scalar , typename ArnoldiOpType >
Matrix Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_fac_H
protected

Definition at line 51 of file Arnoldi.h.

◆ m_fac_V

template<typename Scalar , typename ArnoldiOpType >
Matrix Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_fac_V
protected

Definition at line 50 of file Arnoldi.h.

◆ m_k

template<typename Scalar , typename ArnoldiOpType >
Index Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_k
protected

Definition at line 48 of file Arnoldi.h.

◆ m_m

template<typename Scalar , typename ArnoldiOpType >
const Index Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_m
protected

Definition at line 47 of file Arnoldi.h.

◆ m_n

template<typename Scalar , typename ArnoldiOpType >
const Index Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_n
protected

Definition at line 46 of file Arnoldi.h.

◆ m_near_0

template<typename Scalar , typename ArnoldiOpType >
const Scalar Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_near_0
protected

Definition at line 55 of file Arnoldi.h.

◆ m_op

template<typename Scalar , typename ArnoldiOpType >
ArnoldiOpType Spectra::Arnoldi< Scalar, ArnoldiOpType >::m_op
protected

Definition at line 44 of file Arnoldi.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:31