I'm playing around generating random matrices with either sparse gaussian entries or sparse 0-1 entries.
In both cases, I find that the power method often fails to find an eigenvector (from an all-real seed vector), and that the extended power method (instead of each step being a matrix-vector multiplication and a normalization, each step is a matrix-vector multiplication, an orthogonalization against previous eigenvectors, and a normalization) also tends to fail on the 2nd or 3rd eigenvector.
Are there simple ways to generate an all-real eigenvector?
Or am I wrong about these being complex eigenvalues and I should start looking for a bug in my code?