for clarity, organize if statements in the same order for sparse eigenvectors/eigenvalues