May 25th, 2004, 11:56 am
QuoteOriginally posted by: ametrano> it would be cool if the eigens were ordered in your symmetric diagonalization routine.QuantLib is striving for coolness and they are indeed ordered... or at least they should be.Which version of QuantLib are you using? You might have an old one. If you have a matrix for which QuantLib doesn't order the eigenvalues, please post it here and I'll give a look at it.ciao -- Nandoon my laptop running 2003-11-21 Release 0.3.4, I create one 20x20 matrix. I populate the diag with 1. I populate the off diags with .9. I then diagonalize. No problem. in order. Then, the next statements consist of creating a 16x16 matrix. I populate the diags with 1 and the off diags with .9. I then diagonalize. I get reverse order. Reverse order is better than random order, since I can just multiply the resulting matrices by an antidiag matrix of ones, but, it does point to some skepticism. Ordering shouldn't be a big deal, and, keep in mind that a lot of standard routines do not naturally order eigens.