Consider the following symmetric matrix:
$$ M_0 = \begin{pmatrix} 0 & 1 & 2 & 0 \\ 1 & 0 & 4 & 3 \\ 2 & 4 & 0 & 1 \\ 0 & 3 & 1 & 0 \end{pmatrix} $$
and a very similar matrix:
$$ M_1 = \begin{pmatrix} 0 & 1 & 2 & 0 \\ 1 & 0 & -4 & 3 \\ 2 & -4 & 0 & 1 \\ 0 & 3 & 1 & 0 \end{pmatrix} $$
To my surprise, the eigenspectrum of $M_0$ and $(-M_1)$ are the same! Why would this be the case?
I also tried playing around with the values a little; for example, if the center block is $\begin{pmatrix}1 & \pm 4 \\ \pm 4 & 1\end{pmatrix}$ instead, then they do not share the same eigenvalues.
Context: I was considering the Hermitian matrix of this form ($M_2$ below) and noted that this has the same property as the matrix $M_0$ from above. Thus, presumably, it has nothing to do with the fact that the middle block is complex.
$$ M_2 = \begin{pmatrix} 0 & 1 & 2 & 0 \\ 1 & 0 & e^{ix} & 3 \\ 2 & e^{-ix} & 0 & 1 \\ 0 & 3 & 1 & 0 \end{pmatrix} $$
ps. I will accept any answer which explains the phenomenon between the real matrices. I think that would give a hint as to why $M_2$ / Hermitian matrices have the same property.
Thanks.
$$-M_1=D^{-1}M_0D$$ where $D=D^{-1}$ is the diagonal matrix with diagonal entries $(-1,1,1,-1)$. Therefore $M_0$ and $-M_1$ are conjugate, and have the same spectrum. This works because of the zeroes in the corners of $M_0$. In general, $$\pmatrix{a_{11}&a_{12}&a_{13}&a_{14}\\ a_{21}&a_{22}&a_{23}&a_{24}\\ a_{31}&a_{32}&a_{33}&a_{34}\\ a_{41}&a_{42}&a_{43}&a_{44}}$$ and $$-\pmatrix{-a_{11}&a_{12}&a_{13}&-a_{14}\\ a_{21}&-a_{22}&-a_{23}&a_{24}\\ a_{31}&-a_{32}&-a_{33}&a_{34}\\ -a_{41}&a_{42}&a_{43}&-a_{44}}$$ are conjugate, for precisely the same reason.