[Numpy-discussion] Eigenvectors in Matlab vs. Numpy

Robert Kern robert.kern@gmail....
Sun Jun 29 21:34:33 CDT 2008

On Sun, Jun 29, 2008 at 21:00, Saket <saketn@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