I'm trying to draw a block matrix in LaTeX, and this is what I have so far:
\begin{array}{|c|c|}
\hline
I_{r \times r} & 0 \\
\hline
0 & 0 \\
\hline
\end{array}
Here's a picture of what this looks like when rendered:
How would I enforce that the matrix be square when rendered? Right now, it's clearly wider than it is tall because of the I_{r \times r}
placed in top-left element. Also, the intersections of the lines at the corners of the matrix are not being rendered properly. Do you have any suggestions as to how I could fix this as well?