Gams and eigenvectors

questions about GAMS' tools
Post Reply
Luca
User
User
Posts: 23
Joined: 2 years ago

Gams and eigenvectors

Post by Luca » 1 year ago

Dear all,

I am using the tool eigenvector.exe to compute the eigenvector of a matrix.
Gams return a matrix with the eigenvectors. Just one question: the eigenvector are the row or the column of that matrix?

Thanks very much. Best regards,
Luca

User avatar
Renger
Posts: 585
Joined: 3 years ago

Re: Gams and eigenvectors

Post by Renger » 1 year ago

Hi Luca

The definition of an eigenvector is Ax = lx, where A is the matrix for which you want to know the eigenvectors and eigenvalues. So it makes sense to have the eigenvectors in the columns. evec gives you all the eigenvectors as columns.

You can check it out yourself by using the example from eigenvalue and multiplying the original matrix with the matrix evec and It is a nice exercise for doing some matrix multiplication. If you have problems doing this, I could send you the code.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Luca
User
User
Posts: 23
Joined: 2 years ago

Re: Gams and eigenvectors

Post by Luca » 1 year ago

thanks very much. I will do the exercise

Post Reply