Looks good to me. The eigenvalues look the same up to the precision shown and eigenvectors are only unique up to a scalar multiple.
Just a question from a non-mathematician. Also, this is a math
question, not a Julia/Matlab question.
I agree that Matlab and Julia are both correct -- within the
definitions of eigenvector and eigenvalue they compute, it's OK that
one eigenvector differes between the two by a factor -1. They're
probably calling the same library anyway.
However, from a physics perspective, this bugs me. In physics, an
important feature of a space is its orientation. For example,
physics and engineering undergrads learn early on about about the
"right-hand rule" for taking cross products of vectors. This type of
product imposes an orientation (or chirality) on the vector space
under consideration. Real mathematicians may be familiar with
the wedge product in exterior algebra, which (I belive) also imposes
an orientation on a vector space. Wikipedia says:
https://en.wikipedia.org/wiki/Orientation_(vector_space)
The problem I have with Julia and Matlab returning a set of
eigenvectors where only one eigenvector is the negative of the other
is that the two eigenvector sets span spaces of opposite
orientation, so the returns are -- in some sense -- not the same.
So my question: Is there anything like a set of "oriented"
eigenvectors? Is this even possible? Or am I totally wrong, and
the two different sets of eigenvectors span the same space independent
of concerns about orientation?
I don't think you can define that in a continuous way.
In general, if your application relies on certain property of the basis,
you should just normalize it that way. If you don't have a requirement than
you should worry about it.
Thanks for the thoughts.
I did a little more thinking and Googling. My conclusion:
Yes, you can define the concept of orientation very clearly. The
orientation of a vector space is given by the determinant of the
matrix formed by its basis set (eigenvectors). The determinant will
be either + or -1 for an orthonormal set of basis vectors. The sign
of the determinant divides the orthonormal set into two equivalence
classes of basis vectors, one with + orientation, the other with -.
On Sat, Sep 10, 2016 at 2:12 PM, Stuart Brorson <s...@cloud9.net> wrote:I don't think you can define that in a continuous way.
In general, if your application relies on certain property of the basis,
you should just normalize it that way. If you don't have a requirement than
you should worry about it.
Thanks for the thoughts.
I did a little more thinking and Googling. My conclusion:
Yes, you can define the concept of orientation very clearly. The
orientation of a vector space is given by the determinant of the
matrix formed by its basis set (eigenvectors). The determinant will
be either + or -1 for an orthonormal set of basis vectors. The sign
of the determinant divides the orthonormal set into two equivalence
classes of basis vectors, one with + orientation, the other with -.What I actually mean is that you can constraint the result of eigs.
However, from a physics perspective, this bugs me. In physics, an
important feature of a space is its orientation.
+10**10**10