Eigenvector and corresponding Eigenvalue in Armadillo

30 views Asked by At

I'm using Armadillo in C++. I computed the eigenvectors and eigenvalues of a matrix A using the eig_sym function. Now I'd like to multiply an eigenvector v by its corresponding eigenvalue to compare it with A*v just to see that it worked correctly. How do I do that? Eigenvalues are sorted in ascending order but the indices of the eigenvectors seem to not correspond to their corresponding eigenvalue.

0

There are 0 answers