[Numpy-discussion] Eigenvectors in Matlab vs. Numpy

Robert Kern robert.kern at gmail.com
Sun Jun 29 22:34:33 EDT 2008


On Sun, Jun 29, 2008 at 21:00, Saket <saketn at gmail.com> wrote:
> Hmm... so the relationship Ax = Lx should hold for every eigenvalue
> and corresponding eigenvector of A, right? But, consider the first
> eigenvalue,eigenvector pair:
>
>    for i,eval in enumerate(d):
>        print abs(numpy.dot(A,v[i]) - numpy.dot(eval,v[i])).max()
>        return
>
> Outputs: 1.928
>
> I thought maybe the ith eigenvector corresponds to a different (not
> the ith) eigenvalue, but there doesn't seem to be any eigenvalue which
> corresponds to the ith eigenvector such that the relationship holds...

The eigenvectors are the columns, not the rows.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco



More information about the NumPy-Discussion mailing list