Solving Problem to Get Unnormalized Eigenvectors in C/Fortran

  • Thread starter Thread starter evgenx
  • Start date Start date
  • Tags Tags
    Eigenvectors
AI Thread Summary
The discussion centers on obtaining unnormalized eigenvectors from a matrix using standard libraries or subroutines in C or Fortran. The original poster, Evgeniy, notes that while many linear algebra packages, such as LAPACK's DSPEV, provide normalized eigenvectors, they require the "raw" unnormalized versions for further calculations. There is clarification on what unnormalized eigenvectors entail, emphasizing that normalization is a straightforward process involving scaling the vector by a nonzero factor. Evgeniy expresses the need for a solution that can be integrated into existing C or Fortran code, dismissing the use of Mathematica due to compatibility issues. The goal is to derive the normalization factor from the unnormalized eigenvectors obtained through matrix diagonalization.
evgenx
Messages
14
Reaction score
0
Hallo,

I am trying to solve the following problem. I need to get eigenvectors of a matrix. I know that there are many subroutines for that in linear algebra packages, for instance in Lapack there is DSPEV, but they all give normalized eigenvectors, while I need the "original" unnormalized ones. I will very appreciate any idea/point how one can solve this using a standart library/subroutine in C or fortran (to embed it in a code written in C/frotran).
Many thanks!Evgeniy
 
Last edited:
Physics news on Phys.org
What do you mean by an "unnormalized" eigenvector?

If you multiply a "normalized" vector by any nonzero random number, it becomes an unnormalized vector - but I don't suppose that was what you really wanted to do..

Normalized vectors just have the some nice property. Either the maximum entrry in the vector is +1.0, or ##x^Tx = 1##, or ##x^TAx = 1##, or whatever method of normalization you choose. Normalization isn't something mysterious and complicated.
 
Hi All,

Many thanks for your replies !
Concerning the solution with Mathematica it is of course very nice but unfortunatelly I cannot use it. I need a subroutine in C or fortran because I have to embed it in a code (written in C/fortran). Sorry, that I was imprecise in my post concerning the type of solution.

To the question on the "unnormalized" eigenvectors, yes you are right that normalization isn't mysterious :). In fact, I am interested in the
the normalization factor in the case of x^{T}x=1. I thought that if I get the unnormalized eigenvectors, that is, the "raw" eigenvectors obtained after diagonalization of the matrix, I would be able to find the normalization factor for each vector.
 
Last edited:

Similar threads

Replies
2
Views
3K
Replies
3
Views
2K
Replies
59
Views
11K
Replies
5
Views
6K
Replies
5
Views
2K
Replies
18
Views
6K
Back
Top