A.I.M.S algorithms


AimsEigen< T > Class Template Reference

#include <aims/math/eigen.h>

Public Types

enum  EigenReturnType { MatrixOfEigenValues, VectorOfEigenValues }
 

Public Member Functions

void setReturnType (EigenReturnType rt)
 
AimsData< T > doit (AimsData< T > &, AimsData< T > *wi=NULL)
 Eigen system resolution function. More...
 
void sort (AimsData< T > &eigenvectors, AimsData< T > &eigenvalues, AimsData< T > *wi=NULL)
 Sort the eigenvectors and eigenvalues in decreasing order. More...
 
Constructor and destructor
 AimsEigen (EigenReturnType rt=MatrixOfEigenValues)
 constructor. More...
 
virtual ~AimsEigen ()
 destructor More...
 

Detailed Description

template<class T>
class AimsEigen< T >

Definition at line 45 of file eigen.h.

Member Enumeration Documentation

template<class T>
enum AimsEigen::EigenReturnType
Enumerator
MatrixOfEigenValues 
VectorOfEigenValues 

Definition at line 49 of file eigen.h.

Constructor & Destructor Documentation

template<class T>
AimsEigen< T >::AimsEigen ( EigenReturnType  rt = MatrixOfEigenValues)
inline

constructor.

\ Here, we suppose that we mainly want to solve general eigen system with a non-symmetric matrix on input

Definition at line 60 of file eigen.h.

template<class T>
virtual AimsEigen< T >::~AimsEigen ( )
inlinevirtual

destructor

Definition at line 62 of file eigen.h.

Member Function Documentation

template<class T>
AimsData< T > AimsEigen< T >::doit ( AimsData< T > &  ,
AimsData< T > *  wi = NULL 
)

Eigen system resolution function.

\ The various computation function used within this one are adapted from the Numerical Recipes in C.\ This function returns the diagonal matrix of eigenvalues, and the input matrix is transformed into a matrix which columns are the eigenvectors. \

Parameters
wireturn the diagonal matrix of the imaginary parts of the eigenvalues if *wi exists.

Referenced by aims::meshdistance::NormalFromPoints(), and Moment< T >::orientation().

template<class T>
void AimsEigen< T >::setReturnType ( EigenReturnType  rt)
inline

Definition at line 65 of file eigen.h.

template<class T>
void AimsEigen< T >::sort ( AimsData< T > &  eigenvectors,
AimsData< T > &  eigenvalues,
AimsData< T > *  wi = NULL 
)

Sort the eigenvectors and eigenvalues in decreasing order.

Referenced by aims::meshdistance::NormalFromPoints(), and Moment< T >::orientation().


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