Re: Matrix Diagonalization
- From: Larry Gates <larry@xxxxxxxxxxxxxxx>
- Date: Sun, 15 Mar 2009 18:54:24 -0700
On Sat, 14 Mar 2009 10:41:22 +0000 (GMT), nmm1@xxxxxxxxx wrote:
In article <8208a$49bb86df$d55d2be5$2068@xxxxxxxxxxxxxx>,
Jan Gerrit Kootstra <jan.gerrit@xxxxxxxxxxxxxxx> wrote:
Lambda would equal one with multiplicity two. What makes it problematic?Also the simple case of all eigenvalues being equal is not at all simple.Not as not simple as:
Much better to try the case of all eigenvalues having differing values.
( 1 0 )
( 1 1 )
LAPACK and virtually everything else get that one wrong!
Run it, extracting all eigenvectors, and see :-)
The problem is that it has only one eigenvector. LAPACK will return
all eigenvalues and eigenvectors without comment, but one of the
latter is invalid (i.e. all zeroes). If you aren't expecting that,
your code can go bananas.
The all zeroes is not invalid, it is the 'generilized' eigenvector. So
it is not what one should expect from a classical point of view.
Without the specification stating that, I stand by my point!
It's not unreasonable behaviour, but should be documented if it is
a feature. I haven't checked carefully enough to see if it is set
to all zeroes explicitly and reliably, or it just happened to be
what dropped out of the code. If the latter, it is DEFINITELY a
bug in the error detection; if the former, in the documentation.
Obviously, I saw no error return stating "Only N eigenvectors exist"
and ran a test to see what happened, using the classic example that
I was taught as an undergraduate :-)
Regards,
Nick Maclaren.
Well, this is enticing enough for me to code up now. I can't remember
whether I succeeded the last time I tried.
Elliot Chandler is posting now, and I think he knows how to talk a person
through it with g95.
Now I remember. It was right after I sustained a massive concussion in a
car onto bike assault on Nov. 7th of last year. (Thank goodness i had a
helmet on.)
If I have lapack compiled correctly on my machine, what intermediate files
would exist?
--
larry gates
Execute! (I hope that's the right word...)
-- Larry Wall in <20040302065954.GA12495@xxxxxxxx>
.
- References:
- Matrix Diagonalization
- From: Fatemeh
- Re: Matrix Diagonalization
- From: Larry Gates
- Re: Matrix Diagonalization
- From: nmm1
- Re: Matrix Diagonalization
- From: Jan Gerrit Kootstra
- Re: Matrix Diagonalization
- From: nmm1
- Matrix Diagonalization
- Prev by Date: Re: going to the web from fortran
- Next by Date: Re: Matrix Diagonalization
- Previous by thread: Re: Matrix Diagonalization
- Next by thread: Re: Matrix Diagonalization
- Index(es):
Relevant Pages
|
Loading