Eigenvalues and Eigenvectors


Utility Routines

Currently the only routine in this category is the sort routine which allows that eigenvalues to be sorted in ascending or decending order and the corresponding columns of the matrix of eigenvectors to reflect the change in order.

Function List

  • void Sort_Eigenvalues( double eigenvalues[ ], double *eigenvectors, int n, int sort_order )

    Sort the eigenvalues and corresponding eigenvectors. If sort_order is positive, then eigenvalues are sorted in ascending order and if sort_order is negative, then eigenvalues are sorted in descending order. The columns of the matrix eigenvectors are permuted so that the ith eigenvalue has the corresponding eigenvector in the ith column of the matrix eigenvectors.

C Source Code