On 2007-02-28, Robert Kern <[EMAIL PROTECTED]> wrote:

> No, that's a numpy array.

Robert,

  That's where I went off. I forgot that I'm still dealing with a 1D NumPy
array and not a list. No wonder I had such fits!

> Those aren't tuples, but complex numbers.

  I have not seen the 'j' suffix before. That was throwing me.

> # Extract the real components (since the imaginary components are all 0):
> eigvals = eigvals.real

  That's so much easier than what I ended up doing, which was creating
another variable and assigning to that an explicit cast to real of the
array.

> # Normalize the eigenvalues:
> eigvals /= eigvals.sum()

  Now that's really nice!

Thank you very much for today's lessons. I really appreciate them

Rich
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to