Main       Download       Commercial support       FAQ       Forum       About Us

Eigenvalues and eigenvectors of a real symmetric tridiagonal matrix

Real number λ and vector z are called an eigen pair of matrix A, if Az = λz. For a real matrix A there could be both the problem of finding the eigenvalues and the problem of finding the eigenvalues and eigenvectors. There could also be the problem of finding the eigen pairs which meet given conditions (say, only finding the biggest by absolute value eigenvalues).

If matrix A of size NxN is symmetric, it has N eigenvalues (not necessarily distinctive) and N corresponding eigenvectors which form an orthonormal basis (generally, eigenvectors are not orthogonal, and their number could be lower than N).

This algorithm finds all the eigenvalues (and, if needed, the eigenvectors) of a symmetric tridiagonal matrix. It is also used for finding eigen pairs of an arbitrary symmetric matrix, as each symmetric matrix could be reduced to tridiagonal form by the orthogonal transformation of similarity which doesn't change the matrix eigenvalues.

Subroutine description

The SMatrixTDEVD subroutine finds the eigenvalues (and, if needed, the eigenvectors) of a tridiagonal matrix which is given by its main diagonal D and secondary diagonal E.

The ZNeeded parameter controls whether the eigenvectors are required or not. It is possible to get the eigenvectors of a tridiagonal matrix or pass a transformation matrix which reduces the symmetric matrix to tridiagonal form to the algorithm and get the eigenvalues of an original symmetric matrix.

The algorithm is iterative, so, theoretically, it may not converge. In this case, it returns False.

This algorithm is transferred from the LAPACK library.

Manual entries

C++ evd subpackage   
C# evd subpackage   

This article is intended for personal use only.

Download ALGLIB

C#

C# source.

Downloads page

 

C++

C++ source.

Downloads page

 

C++, multiple precision arithmetic

C++ source. MPFR/GMP is used.

GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.

Downloads page

 

FreePascal

FreePascal version.

Downloads page

 

Delphi

Delphi version.

Downloads page

 

VB.NET

VB.NET version.

Downloads page

 

VBA

VBA version.

Downloads page

 

Python

Python version (CPython and IronPython are supported).

Downloads page

 

 

ALGLIB® - numerical analysis library, 1999-2013.
ALGLIB is a registered trademark of the ALGLIB Project.