|
Bsoft
1.9
Bernard's software package
|
Header file for eigen analysis. More...
Go to the source code of this file.
Functions | |
| int | jacobian_rotation (int n, double *a, double *d, double *v) |
| Computes all eigenvalues and eigenvectors of a real symmetric matrix. More... | |
| void | eigen_sort (int n, double *d, double *v) |
| Sorts eigenvalues into descending order and rearranges matrix columns accordingly. More... | |
| Vector3< float > | principal_axes (Vector3< float > avg, Vector3< float > avg2, Vector3< float > avgx, Vector3< float > *eigenvec) |
| Calculates the principal axes of 3D coordinates. More... | |
Header file for eigen analysis.
Definition in file matrix_eigen.h.
| void eigen_sort | ( | int | n, |
| double * | d, | ||
| double * | v | ||
| ) |
Sorts eigenvalues into descending order and rearranges matrix columns accordingly.
This method uses straight insertion. Reference: Press W.H. et al (1992) Numerical Recipes in C.
| int | n number of eigenvalues = size of matrix. |
| double* | d eigenvalues. |
| double* | v eigenvectors in columns. |
Definition at line 149 of file matrix_eigen.cpp.
| int jacobian_rotation | ( | int | n, |
| double * | a, | ||
| double * | d, | ||
| double * | v | ||
| ) |
Computes all eigenvalues and eigenvectors of a real symmetric matrix.
The superdiagonal elements of the input matrix is modified. Reference: Press W.H. et al (1992) Numerical Recipes in C.
| int | n size of matrix: n x n. |
| double* | a real symmetric matrix. |
| double* | d eigenvalues. |
| double* | v eigenvectors in columns. |
Definition at line 40 of file matrix_eigen.cpp.
| Vector3<float> principal_axes | ( | Vector3< float > | avg, |
| Vector3< float > | avg2, | ||
| Vector3< float > | avgx, | ||
| Vector3< float > * | eigenvec | ||
| ) |
Calculates the principal axes of 3D coordinates.
Reference: Press W.H. et al (1992) Numerical Recipes in C.
| Vector3<float> | avg average of vectors. |
| Vector3<float> | avg2 average of squared vectors. |
| Vector3<float> | avgx average of cross products {xy, xz, yz}. |
| Vector3<float>* | eigenvec 3 return eigen vectors (can be NULL). |
Definition at line 182 of file matrix_eigen.cpp.