> Yes : evectors[:3] selects the first three lines, evectors[:,3] selects the
> fourth column.
>
arggg!!
my mistake!
sorry Lorenzo
thanks Matthieu
gordon
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/l
>
> but the notation evectors[:3] will give me an ndarray of shape(3,6)
> Am i missing something here?
>
Yes : evectors[:3] selects the first three lines, evectors[:,3] selects the
fourth column.
Matthieu
--
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt
> The normalized eigenvector corresponding to the eigenvalue w[i]
> is the column v[:,i].
> so, yes, the eigvec coresponding to the eigval w[i] is v[:,i].
Lorenzo
sorry i don't understand
from the above sample(unordered)
if i select the the 4th eigenvalue i get 1.7
evals[3]=1.7
i believe th
from numpy.eigh?:
:Returns:
w : 1-d double array
The eigenvalues. The eigenvalues are not necessarily ordered.
v : 2-d double or complex double array, depending on input array
type
The normalized eigenvector corresponding to the eigenvalue w[i]
is
hello
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. ],
[2.,1.,5.,7.,5.,3.],