My matrix $M$ is huge, but I know that $1$ is an eigenvalue.
I need to extract the corresponding eigenvector, which corresponds to this eigenvalue $\lambda=1$.
There could be $1000$ other eigenvalues, but I need only to know what happens for $\lambda=1$
I currently set up an if procedure, which evaluates all 1000, checks if it's eigenvalue is 1, if true then print the result. However this is taking forever to run for big matrices.
Can somebody help me out with an efficient code? I should use the LinearAlgebra[EigenVectors]
command.
I was thinking something along eval (eigenvalue - 1)<0.01
, then evaluate the vector. But I can't seem to put it into code.
python
usingnumpy
instead, which returns as a list and is far easier to perform fast searches – Alexander McFarlane Mar 26 '16 at 06:35