The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

orthogonal eigenvectors with zgeev

Open discussion regarding features, bugs, issues, vendors, etc.

orthogonal eigenvectors with zgeev

Postby wsim83 » Tue Mar 09, 2010 4:59 pm

Hi, I'm in need of orthogonal eigenvectors. I'm wondering if zgeev should produce a complete set of orthogonal eigenvectors within degenerate subspaces( as zheev does) or if I have to orthogonalize by hand. Is there a routine that would finish off the orthogonalization?
William
wsim83
 
Posts: 10
Joined: Mon Sep 21, 2009 1:32 pm

Re: orthogonal eigenvectors with zgeev

Postby sven » Wed Mar 10, 2010 5:00 am

Hi William,

Unless there is something special about your matrix, a non-Hermitian matrix will not usually have orthogonal eigenvectors. If you are looking for an orthonormal basis for the invariant subspace spanned by the eigenvalues, then you can use ZGEES, or ZGEESX, to find the Schur vectors.

Best wishes,

Sven Hammarling,
sven
 
Posts: 146
Joined: Wed Dec 22, 2004 4:28 am

Re: orthogonal eigenvectors with zgeev

Postby wsim83 » Wed Mar 10, 2010 11:16 am

Hi Sven,
The matrix I am testing my programming with is hermitian. zheev produces orthogonal eigenvectors but zgeev does not seem to. The reason I'm testing with zgeev is that later I will need to diagonalize the same matrix multiplied by diag(1...1,-1...-1).
wsim83
 
Posts: 10
Joined: Mon Sep 21, 2009 1:32 pm

Re: orthogonal eigenvectors with zgeev

Postby sven » Wed Mar 10, 2010 12:11 pm

Hi William,

zgeev does not diagonalize a matrix, it uses the Schur factorization and in general it does not produce orthogonal eigenvectors.

Are you multiplying on just one side by diag(1...1,-1...-1)? What is it that you are trying to achieve?

Best wishes,

Sven.
sven
 
Posts: 146
Joined: Wed Dec 22, 2004 4:28 am

Re: orthogonal eigenvectors with zgeev

Postby wsim83 » Wed Mar 10, 2010 4:17 pm

Hi Sven,

I want to obtain the eigenvalues and eigenvectors of J*H, H is Hermitian, so that I can evaluate thermal averages of bilinear forms of boson operators. The condition on the eigenvectors is that they satisfy
conjTrans(vi)*J*vj = (-1)^(a)*delta_{ij}, where a=(o for i =1,...N and 1 for i=N+1,..., 2N) and vi,vj are eigenvectors. For the condition to be satisfied I think I need orthogonal eigenvectors.

William
wsim83
 
Posts: 10
Joined: Mon Sep 21, 2009 1:32 pm

Re: orthogonal eigenvectors with zgeev

Postby Julien Langou » Wed Mar 10, 2010 8:46 pm

Your matrix is Hamiltonian I believe. Please have a look at HAPACK.
http://www.tu-chemnitz.de/mathematik/hapack/
An excellent reference is the PhD thesis of Daniel Kressner Section 4.3, 4.4 and 4.5.
Best wishes,
Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 5 guests