I have an iteration whose steps extract a matrix with any possible dimension for example 3*3
, 6*6
, 10*10
, 4*4
... . In any iteration I have eigenvalues and eigenvectors of the matrix extracted, for example {10^-6, 10^-4, 10^-3, 0.1, 0.4}
. I wish to keep eigenvectors corresponding to just {10^-3, 0.1, 0.4}
.
In fact with the below code I could sort eigenvalues and corresponded eigenvectors:
{eivals, eivecs} = Eigensystem[matrix];
{eivals, eivecs}= {eivals[[#]], eivecs[[#]]} &@ Ordering[eivals];
But, when I want to use
desiredeigenvecs=Drop[eivecs, x]
I do not know how I insert a suitable x to keep eigenvectors according to the important eigenvalues except the first unimportant eigenvalues?!!
10^-3
as threshold value $\endgroup$ – Unbelievable Jan 9 '20 at 17:43