Fortran90: Subroutine DSYEV and associating eigenvalues and eigenvectors.

  • #1
Greetings. I am using the LAPACK (Linear Algebra Package) software package to find the eigenvalues and eigenvectors of a large symmetrical real matrix. Specifically, I calculate a scalar from each eigenvector, and I want to graph it against its associated eigenvalue.

I am using the subroutine DSYEV of LAPACK to do this. However, DSYEV outputs the eigenvalues in ascending order, and I'm not sure how it orders the eigenvectors. Is there a way to associate each eigenvector with its eigenvalue?

Edit: The official page for DSYEV is here: http://www.netlib.org/lapack/double/dsyev.f
Here is another page about it: http://www.nag.co.uk/numeric/fl/nagdoc_fl22/xhtml/F08/f08faf.xml
 

Answers and Replies

  • #2
The eigenvectors are returned in the A matrix in the same order as the eigenvalues.

A(1:N, 1) is the vector for W(1), A(1:N, 2) is the vector for W(2), etc.
 
  • #3
Thank you very much for the reply.

Just to be completely clear: the columns of the matrix A are the eigenvectors?
 
  • #4
If you set JOBV = "V", then yes. Otherwise, no!
 

Suggested for: Fortran90: Subroutine DSYEV and associating eigenvalues and eigenvectors.

Replies
3
Views
1K
Replies
3
Views
1K
Replies
2
Views
2K
Replies
14
Views
1K
Replies
5
Views
3K
Replies
16
Views
1K
Replies
2
Views
980
Replies
59
Views
8K
Replies
9
Views
1K
Back
Top