ergo
mat::arn::Lanczos< Treal, Tmatrix, Tvector > Class Template Referenceabstract

Class template for building Krylov subspaces with Lanczos. More...

#include <Lanczos.h>

Inheritance diagram for mat::arn::Lanczos< Treal, Tmatrix, Tvector >:
mat::arn::LanczosLargestMagnitudeEig< Treal, Tmatrix, Tvector > mat::arn::LanczosLargestMagnitudeEigIfSmall< Treal, Tmatrix, Tvector >

Public Member Functions

 Lanczos (Tmatrix const &AA, Tvector const &startVec, int maxIt=100, int cap=100)
 
void restart (Tvector const &startVec)
 
virtual void run ()
 
void copyTridiag (MatrixTridiagSymmetric< Treal > &Tricopy)
 
virtual ~Lanczos ()
 

Protected Member Functions

void increaseCapacity (int const newCapacity)
 
void step ()
 
void getEigVector (Tvector &eigVec, Treal const *const eVecTri) const
 
virtual void update ()=0
 
virtual bool converged () const =0
 

Protected Attributes

Tmatrix const & A
 
Tvectorv
 
Tvector r
 Vectors spanning Krylov subspace.
 
MatrixTridiagSymmetric< TrealTri
 Residual vector.
 
int capacity
 
int j
 
int maxIter
 Current step.
 

Private Attributes

Treal alpha
 
Treal beta
 

Detailed Description

template<typename Treal, typename Tmatrix, typename Tvector>
class mat::arn::Lanczos< Treal, Tmatrix, Tvector >

Class template for building Krylov subspaces with Lanczos.

Build up Krylov subspace for symmetric matrix with a Lanczos process.

Treal: Type for real numbers

Tmatrix: The matrix class

Tvector: Vector class

Constructor & Destructor Documentation

◆ Lanczos()

◆ ~Lanczos()

Member Function Documentation

◆ converged()

◆ copyTridiag()

◆ getEigVector()

void mat::arn::Lanczos< Treal, Tmatrix, Tvector >::getEigVector ( Tvector & eigVec,
Treal const *const eVecTri ) const
protected

◆ increaseCapacity()

void mat::arn::Lanczos< Treal, Tmatrix, Tvector >::increaseCapacity ( int const newCapacity)
protected

◆ restart()

◆ run()

◆ step()

◆ update()

Member Data Documentation

◆ A

◆ alpha

◆ beta

◆ capacity

◆ j

◆ maxIter

◆ r

Vectors spanning Krylov subspace.

In step j: Vectors 0 : j-2 is on file Vectors j-1 : j is in memory

Referenced by mat::arn::Lanczos< Treal, Tmatrix, Tvector >::Lanczos(), and mat::arn::Lanczos< Treal, Tmatrix, Tvector >::restart().

◆ Tri

◆ v


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