#include <itkSymmetricEigenAnalysis.h>
Public Types | |
typedef TMatrix | MatrixType |
typedef TEigenMatrix | EigenMatrixType |
typedef TVector | VectorType |
enum | EigenValueOrderType { OrderByValue = 1, OrderByMagnitude, DoNotOrder } |
Public Member Functions | |
SymmetricEigenAnalysis () | |
SymmetricEigenAnalysis (const unsigned int dimension) | |
~SymmetricEigenAnalysis () | |
unsigned int | ComputeEigenValues (const TMatrix &A, TVector &EigenValues) const |
unsigned int | ComputeEigenValuesAndVectors (const TMatrix &A, TVector &EigenValues, TEigenMatrix &EigenVectors) const |
void | SetOrder (const unsigned int n) |
unsigned int | GetOrder () const |
unsigned int | GetDimension () const |
void | SetOrderEigenValues (const bool b) |
bool | GetOrderEigenValues () const |
void | SetOrderEigenMagnitudes (const bool b) |
bool | GetOrderEigenMagnitudes () const |
void | SetDimension (const unsigned int n) |
The class is templated over the input matrix, (which is expected to provide access to its elements with the [][] operator), matrix to store eigen values, (must provide write operations on its elements with the [] operator), EigenMatrix to store eigen vectors (must provide write access to its elements with the [][] operator).
The SetOrderEigenValues() method can be used to order eigen values (and their corresponding eigen vectors if computed) in ascending order. This is the default ordering scheme. Eigen vectors and values can be obtained without ordering by calling SetOrderEigenValues(false)
The SetOrderEigenMagnitudes() method can be used to order eigen values (and their corresponding eigen vectors if computed) by magnitude in ascending order.
The user of this class is explicitly supposed to set the dimension of the 2D matrix using the SetDimension() method.
The class contains routines taken from netlib sources. (www.netlib.org). netlib/tql1.c netlib/tql2.c netlib/tred1.c netlib/tred2.c
Reference: num. math. 11, 293-306(1968) by bowdler, martin, reinsch, and wilkinson. handbook for auto. comp., vol.ii-linear algebra, 227-240(1971).
Definition at line 60 of file itkSymmetricEigenAnalysis.h.
|
Definition at line 84 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 83 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 85 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 63 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 69 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 75 of file itkSymmetricEigenAnalysis.h. |
|
Definition at line 81 of file itkSymmetricEigenAnalysis.h. |
|
Compute Eigen values of A A is any type that overloads the [][] operator and contains the symmetric matrix. In practice only the upper triangle of the matrix will be accessed. (Both itk::Matrix and vnl_matrix overload [][] operator.) 'EigenValues' is any type that overloads the [] operator and will contain the eigen values. No size checking is performed. A is expected to be a square matrix of size m_Dimension. 'EigenValues' is expected to be of length m_Dimension. The matrix is not checked to see if it is symmetric. Referenced by itk::Functor::SymmetricEigenAnalysisFunction< TInput, TOutput >::operator()(). |
|
Compute Eigen values and vectors of A A is any type that overloads the [][] operator and contains the symmetric matrix. In practice only the upper triangle of the matrix will be accessed. (Both itk::Matrix and vnl_matrix overload [][] operator.) 'EigenValues' is any type that overloads the [] operator and will contain the eigen values. 'EigenVectors' is any type that provides access to its elements with the [][] operator. It is expected be of size m_Dimension * m_Dimension. No size checking is performed. A is expected to be a square matrix of size m_Dimension. 'EigenValues' is expected to be of length m_Dimension. The matrix is not checked to see if it is symmetric. Each row of the matrix 'EigenVectors' represents an eigen vector. (unlike MATLAB where the columns of the [EigenVectors, EigenValues] = eig(A) contains the eigenvectors). |
|
Get Matrix dimension, Will be 0 unless explicitly set by a call to SetDimension. Definition at line 179 of file itkSymmetricEigenAnalysis.h. |
|
Get the Matrix order. Will be 0 unless explicitly set, or unless a call to SetDimension has been made in which case it will be the matrix dimension. Definition at line 141 of file itkSymmetricEigenAnalysis.h. |
|
Set/Get methods to order the eigen value magnitudes in ascending order. In other words, |lambda_1| < |lambda_2| < ..... Definition at line 162 of file itkSymmetricEigenAnalysis.h. |
|
Set/Get methods to order the eigen values in ascending order. This is the default. ie lambda_1 < lambda_2 < .... Definition at line 151 of file itkSymmetricEigenAnalysis.h. |
|
Set the dimension of the input matrix A. A is a square matrix of size m_Dimension. Definition at line 167 of file itkSymmetricEigenAnalysis.h. Referenced by itk::Functor::SymmetricEigenAnalysisFunction< TInput, TOutput >::SetDimension(). |
|
Matrix order. Defaults to matrix dimension if not set * Definition at line 133 of file itkSymmetricEigenAnalysis.h. |
|
Set/Get methods to order the eigen value magnitudes in ascending order. In other words, |lambda_1| < |lambda_2| < ..... Definition at line 157 of file itkSymmetricEigenAnalysis.h. Referenced by itk::Functor::SymmetricEigenAnalysisFunction< TInput, TOutput >::OrderEigenValuesBy(). |
|
Set/Get methods to order the eigen values in ascending order. This is the default. ie lambda_1 < lambda_2 < .... Definition at line 146 of file itkSymmetricEigenAnalysis.h. Referenced by itk::Functor::SymmetricEigenAnalysisFunction< TInput, TOutput >::OrderEigenValuesBy(). |