LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::jacobi< T > Class Template Reference

jacobi functor. More...

#include <ltiEigenSystem.h>

Inheritance diagram for lti::jacobi< T >:
Inheritance graph
[legend]
Collaboration diagram for lti::jacobi< T >:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 eigenSystem parameter class More...

Public Member Functions

 jacobi ()
 jacobi (const parameters &params)
virtual bool apply (const matrix< T > &theMatrix, vector< T > &eigenvalues, matrix< T > &eigenvectors) const
virtual functorclone () const
virtual const char * getTypeName () const
const parametersgetParameters () const

Detailed Description

template<class T>
class lti::jacobi< T >

jacobi functor.

This functor computes all eigenvalues and eigenvectors of a real _symmetric and square_ matrix using the Jacobi method.

Please note that the eigenvector matrices will contain the eigenvector in the COLUMNS and not in the rows, as could be expected. This avoids the requirement of transposing matrices in eigenvector-based transformations like PCA! All eigenvector functors follows this interface.


Constructor & Destructor Documentation

template<class T>
lti::jacobi< T >::jacobi (  ) 

default constructor

template<class T>
lti::jacobi< T >::jacobi ( const parameters params  ) 

default constructor with parameters


Member Function Documentation

template<class T>
virtual bool lti::jacobi< T >::apply ( const matrix< T > &  theMatrix,
vector< T > &  eigenvalues,
matrix< T > &  eigenvectors 
) const [virtual]

onCopy version of apply.

Parameters:
theMatrix Real symmetric matrix to be transformed. Only the diagonal and above diagonal elements have to be set.
eigenvalues Elements will contain the eigenvalues.
eigenvectors Columns will contain the eigenvectors corresponding to the eigenvalues. returns true if successful, false otherwise.

Implements lti::eigenSystem< T >.

template<class T>
virtual functor* lti::jacobi< T >::clone (  )  const [inline, virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

template<class T>
const parameters& lti::jacobi< T >::getParameters (  )  const

returns the current parameters.

Reimplemented from lti::eigenSystem< T >.

template<class T>
virtual const char* lti::jacobi< T >::getTypeName ( void   )  const [inline, virtual]

returns the name of this type

Reimplemented from lti::eigenSystem< T >.


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

Generated on Sat Apr 10 15:28:16 2010 for LTI-Lib by Doxygen 1.6.1