Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-03 Thread Val Kalatsky
Ad hoc, ad loc > and quid pro quo > > &n bsp; > --- Jeremy Hilary Boob > > > -------------- > Date: Mon, 2 Apr 2012 22:19:55 -0500 > From: kalat...@gmail.com > To: numpy-discussion@scipy.org > Subject: Re:

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-03 Thread Hongbin Zhang
Hilary Boob From: hongbin_zhan...@hotmail.com To: numpy-discussion@scipy.org Date: Tue, 3 Apr 2012 15:02:18 +0800 Subject: Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine Hej Val, Thank you very much for your replies. Yes, I know that both eigenvectors are correct

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-03 Thread Hongbin Zhang
d pro quo --- Jeremy Hilary Boob Date: Mon, 2 Apr 2012 22:19:55 -0500 From: kalat...@gmail.com To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine BTW this extra degree of freedom can be used to "rotate" the eig

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread Val Kalatsky
BTW this extra degree of freedom can be used to "rotate" the eigenvectors along the unit circle (multiplication by exp(j*phi)). To those of physical inclinations it should remind of gauge fixing (vector potential in EM/QM). These "rotations" can be used to make one (any) non-zero component of each

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread Matthew Brett
Hi, On Mon, Apr 2, 2012 at 5:38 PM, Val Kalatsky wrote: > Both results are correct. > There are 2 factors that make the results look different: > 1) The order: the 2nd eigenvector of the numpy solution corresponds to the > 1st eigenvector of your solution, > note that the vectors are written in c

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread Matthew Brett
Hi, 2012/4/2 Hongbin Zhang : > Dear Python-users, > > I am currently very confused about the Scipy routine to obtain the > eigenvectors of a complex matrix. > In attached you find two files to diagonalize a 2X2 complex Hermitian > matrix, however, on my computer, > > If I run python, I got: > > [[

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread Val Kalatsky
Both results are correct. There are 2 factors that make the results look different: 1) The order: the 2nd eigenvector of the numpy solution corresponds to the 1st eigenvector of your solution, note that the vectors are written in columns. 2) The phase: an eigenvector can be multiplied by an arbitra

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread josef . pktd
2012/4/2 Hongbin Zhang : > Dear Python-users, > > I am currently very confused about the Scipy routine to obtain the > eigenvectors of a complex matrix. > In attached you find two files to diagonalize a 2X2 complex Hermitian > matrix, however, on my computer, > > If I run python, I got: > > [[ 0.80

[Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread Hongbin Zhang
Dear Python-users, I am currently very confused about the Scipy routine to obtain the eigenvectors of a complex matrix.In attached you find two files to diagonalize a 2X2 complex Hermitian matrix, however, on my computer, If I run python, I got: [[ 0.80322132+0.j 0.59500941+0.02827207j]