[SciPy-dev] [SciPy-user] scipy.linalg.eig() returns transposed eigenvector matrix

Travis Oliphant oliphant at ee.byu.edu
Mon Nov 14 04:59:23 CST 2005


Pearu Peterson wrote:

>On Sun, 13 Nov 2005, Travis Oliphant wrote:
>
>  
>
>>Robert Dick wrote:
>>
>>    
>>
>>>scipy.linalg.eig() returns transposed eigenvector matrix
>>>      
>>>
>
>This is a matter of definition. scipy.linalg.eig and 
>scipy.basic.linalg.eig return correct results according to their 
>documentation. Just scipy.linalg.eig assumes that eigenvectors are 
>returned column-wise, i.e.
>
>   a * vr[:,i] = w[i] * vr[:,i]
>
>holds. While scipy.basic.linalg.eig, that is copied from Numeric, assumes 
>that eigenvectors are returned row-wise, i.e
>  
>
>   a * vr[i] = w[i] * vr[i]
>
>holds.
>  
>
Thanks for the clarification, Pearu.  I'm glad things are actually 
working as advertised.

-Travis




More information about the Scipy-dev mailing list