[Numpy-discussion] linalg.eigh() newbie doubt

gordon nodrogbrown@gmail....
Mon Mar 31 09:43:11 CDT 2008

i was trying the linalg.eigh()
when i apply eigh() on a covariance matrix (an ndarray of shape 6x6  i
get evals,evectors
suppose i get it like

evals=   array([2.2, 5.5, 4.4, 1.7, 7.7, 6.3])
evectors=array([[3.,5. ,1. ,6. ,2. ,4. ],
which is the array that corresponds to eigenvalue 2.2 of evals?
is it the first column of evectors? or is it the first row?

if i were to sort the evectors based on the eigenvalue ,i guess the
most significant eigenvector should correspond to the value of
7.7 ,then am i supposed to consider the 5th column of evectors as the
most significant eigenvector?
please someone help me clear this confusion

More information about the Numpy-discussion mailing list