[eigen] ordering of eigenvalues

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi

I'm testing the Eigen library in order to use it for eigenvalue
decomposition or SVD. In the end I need the eigenvectors (left
singular vectors) and the eigenvalues (singular values).

I noticed that when using the EigenSolver classes, the ordering of the
eigenvalues is not as I expected. Normally, I would expect that I get
an ordering analogous to the singular values, i.e., an ordering with
the maximum absolute value first and then decreasing values ordered by
their absolute value (sometimes also called "largest magnitude
eigenvalues"). What I get now, looks a bit like an ordering
considering the sign.
### eigenvalues of A are:   -2.77687   -1.50582 -0.0370092   0.848378
However, I would expect

### eigenvalues of A are:   -2.77687   -1.505820.848378 -0.0370092



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/