matrix tridiag_eigen_solve ( const vector v1,
const vector v2 
) [inline]

Function that computes the eigenvalues and eigenvectors of a symmetric tri-diagonal matrix.

Author:
Rochan R. Upadhyay
Parameters:
v1: Vector for the diagonal entries of the tri-diagonal matrix
v2: Vector for the sub and super diagonals of the symmetric tri-diagonal matrix

Function returns a matrix. The first row contains all the eigenvalues. The subsequent rows contain the eigenvectors in the same sequence as eigenvalues in the first row. For example the second row contains the eigenvector corresponding to the first eigenvalue in the first row.

Date:
10/12/2010
 All Classes Files Functions Variables Typedefs Friends Defines