GestureRecognitionToolkit  Version: 0.2.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
EigenvalueDecomposition Class Reference

Public Member Functions

bool decompose (const MatrixFloat &a)
 
MatrixFloat getEigenvectors ()
 
MatrixFloat getDiagonalEigenvalueMatrix ()
 
VectorFloat getRealEigenvalues ()
 
VectorFloat getComplexEigenvalues ()
 

Protected Member Functions

void tred2 ()
 
void tql2 ()
 
void orthes ()
 
void hqr2 ()
 
void cdiv (Float xr, Float xi, Float yr, Float yi)
 
template<class T >
findMax (const T &a, const T &b)
 
template<class T >
findMin (const T &a, const T &b)
 
template<class T >
hypot (const T &a, const T &b)
 

Protected Attributes

int n
 
bool issymmetric
 
Float cdivr
 
Float cdivi
 
MatrixFloat eigenvectors
 
MatrixFloat h
 
VectorFloat realEigenvalues
 
VectorFloat complexEigenvalues
 
VectorFloat ort
 
WarningLog warningLog
 

Detailed Description

Definition at line 30 of file EigenvalueDecomposition.h.

Member Function Documentation

void EigenvalueDecomposition::cdiv ( Float  xr,
Float  xi,
Float  yr,
Float  yi 
)
protected

Complex scalar division.

Definition at line 780 of file EigenvalueDecomposition.cpp.

VectorFloat EigenvalueDecomposition::getComplexEigenvalues ( )

Return the complex parts of the eigenvalues

Returns
a VectorFloat containing the complex parts of the eigenvalues

Definition at line 817 of file EigenvalueDecomposition.cpp.

MatrixFloat EigenvalueDecomposition::getDiagonalEigenvalueMatrix ( )

Returns the block diagonal eigenvalue matrix

Returns
a MatrixDouble containing the diagonal eigenvalues

Definition at line 796 of file EigenvalueDecomposition.cpp.

MatrixFloat EigenvalueDecomposition::getEigenvectors ( )
inline

Returns the eigenvector matrix

Returns
a MatrixDouble containing the eigenvector matrix

Definition at line 42 of file EigenvalueDecomposition.h.

VectorFloat EigenvalueDecomposition::getRealEigenvalues ( )

Return the real parts of the eigenvalues

Returns
a VectorFloat containing the real parts of the eigenvalues

Definition at line 813 of file EigenvalueDecomposition.cpp.

void EigenvalueDecomposition::hqr2 ( )
protected

Nonsymmetric reduction from Hessenberg to real Schur form.

This is derived from the Algol procedure hqr2, by Martin and Wilkinson, Handbook for Auto. Comp., Vol.ii-Linear Algebra, and the corresponding Fortran subroutine in EISPACK.

Definition at line 374 of file EigenvalueDecomposition.cpp.

void EigenvalueDecomposition::orthes ( )
protected

Nonsymmetric reduction to Hessenberg form.

This is derived from the Algol procedures orthes and ortran, by Martin and Wilkinson, Handbook for Auto. Comp., Vol.ii-Linear Algebra, and the corresponding Fortran subroutines in EISPACK.

Definition at line 291 of file EigenvalueDecomposition.cpp.

void EigenvalueDecomposition::tql2 ( )
protected

Symmetric tridiagonal QL algorithm.

This is derived from the Algol procedures tql2, by Bowdler, Martin, Reinsch, and Wilkinson, Handbook for Auto. Comp., Vol.ii-Linear Algebra, and the corresponding Fortran subroutine in EISPACK.

Definition at line 185 of file EigenvalueDecomposition.cpp.

void EigenvalueDecomposition::tred2 ( )
protected

Symmetric Householder reduction to tridiagonal form.

This is derived from the Algol procedures tred2 by Bowdler, Martin, Reinsch, and Wilkinson, Handbook for Auto. Comp., Vol.ii-Linear Algebra, and the corresponding Fortran subroutine in EISPACK.

Definition at line 78 of file EigenvalueDecomposition.cpp.


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