Since we can see matrices as generalizations of complex numbers, I asked myself if there is a way to classify those matrices which are the "Basis" for the complex part. That is, I would like to identify the set of $n\times n$ real valued matrices $M$ whose square $M^2$ is equal to $-I$, where $I$ is the $n\times n$-identity matrix. Is this set already classified?
The matrix $J = \left( \begin{smallmatrix}0 & -1\\1 & 0 \end{smallmatrix} \right)$ satisfies $J^{2} = -I$ in the 2-dimensional case.
EDIT:
Thanks to your comments and answers I have the following observation (if its wrong, please tell me):
Suppose that $M$ satisfies that $M^t=-M$, then we can observe for two vectors $x,y\in\mathbb{R}^{2n}$ that
$y^tAx=(Ax)^{t}y=x^{t}A^ty=-x^tAy$
My interpretation is that if the angle between $x$ and $Ay$ is $\alpha$ then $\pi+\alpha$ is the angle between $Ax$ and $y$, since ${\displaystyle \cos \;x=-\cos(x+\pi )}$ (here we suppose that the length of the vectors are not relevant). If now $y=x$ and then we can see that $Ax$ is orthogonal to $x$.
Is it true that $A^2$ will be a rotation of 180 degrees, right? Because of vector length we will have something like $A^2=-CI$, where $C$ is just a constant. Is that true?
Here's a solution for the $n=2$ case (too long for the comments, sorry):
Using the determinant condition I gave in the comments, and letting $$A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}$$ we have $$\det(tI-A) = t^2-a_{22}t-a_{11}t+a_{11}a_{22}-a_{12}a_{21} = t^2+1$$ Equating coefficients gives $-a_{11}=a_{22}$ and $a_{11}a_{22}-a_{12}a_{21}=1$. Rearranging a bit gives the matrix $$ A = \begin{pmatrix} a_{11} & \frac{-a_{11}^2-1}{a_{21}} \\ a_{21} & -a_{11} \end{pmatrix} $$ for $a_{21} \in \mathbb{R}, a_{21} \neq 0$ and $a_{11} \in \mathbb{R}$. So in the case of the example you gave, $a_{11}=0$ and $a_{21}=1$.