Sorry for asking really silly question. I guess the answer will be very simple.
The question I am doing is: Does QR method always converge to a upper triangular matrix?
I think the answer is not. And I guess
$$A= \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$$
And I have $Q_k R_k =A_k$ (QR factorization) and $A_{k+1}=R_k Q_k$. But if my calculations are not wrong, I have all $A_k=A$, which is not upper trianguler.
But my professor had a theorem (and he didn't prove it) that any real symmetric non-singular matrix $A$ will converge to upper triangular form and the diagonal entries converges to eigenvalues. And in my case, $A$ doesn't converge, and the entries (even not the diagonal ones) don't match the eigenvalues ($1$ and $-1$) of $A$.
So, have I made any silly mistakes? Thank you.