The following matrix:
$\begin{pmatrix} -1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}$
is an indefinite matrix? Or it's that is a matrix semidefinite negative and semidefinite positive?
I'm confused because some texts indicate that the indefinite matrices have non-zero eigenvalues of discordant sign, while others do not specify whether the zero eigenvalues are allowed.
Who should I give a reason? Where can I read a definition to be framed in the house and always follow that?
We have $$\begin{pmatrix}{1}&{0}&{0}\end{pmatrix}\begin{pmatrix} -1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}\begin{pmatrix}{1}\\{0}\\{0}\end{pmatrix}=-1<0$$$$\begin{pmatrix}{0}&{0}&{1}\end{pmatrix}\begin{pmatrix} -1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}\begin{pmatrix}{0}\\{0}\\{1}\end{pmatrix}=1>0$$ so, the matrix is indefinite.