Fortran90: Subroutine DSYEV and associating eigenvalues and eigenvectors.

Click For Summary

Discussion Overview

The discussion centers on the use of the LAPACK subroutine DSYEV for calculating eigenvalues and eigenvectors of a large symmetrical real matrix. Participants explore how to associate eigenvectors with their corresponding eigenvalues, particularly focusing on the output format of the subroutine.

Discussion Character

  • Technical explanation, Conceptual clarification

Main Points Raised

  • One participant inquires about the ordering of eigenvectors returned by the DSYEV subroutine and how to associate them with their corresponding eigenvalues.
  • Another participant asserts that the eigenvectors are returned in the A matrix in the same order as the eigenvalues.
  • A follow-up question seeks clarification on whether the columns of the matrix A represent the eigenvectors.
  • A response confirms that if the JOBV parameter is set to "V", then the columns of matrix A are indeed the eigenvectors; otherwise, they are not.

Areas of Agreement / Disagreement

Participants generally agree on the relationship between the eigenvalues and eigenvectors as described, but there is a conditional aspect regarding the JOBV parameter that introduces some uncertainty.

Contextual Notes

The discussion does not address potential limitations or assumptions regarding the use of the DSYEV subroutine or the specific conditions under which the eigenvectors are returned.

Who May Find This Useful

This discussion may be useful for users of LAPACK, particularly those working with eigenvalue problems in linear algebra and seeking clarification on the output of the DSYEV subroutine.

Animastryfe
Messages
80
Reaction score
0
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
 
Technology news on Phys.org
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.
 
Thank you very much for the reply.

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

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 18 ·
Replies
18
Views
7K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K