How can I increase the size of the brackets? They are not enclosing the whole matrix.
\documentclass{article}
\usepackage{blkarray}
\begin{document}
\begin{figure}[htbp]
\begin{spacing}{0.5}
\usepackage{amsmath}
\usepackage{setspace}
\[ \mathbf{\hat R }= \begin{blockarray}{r*{5}{ >{\color{black}}c}}
& A & B & C & D & E \\
\begin{block}{ >{\scriptstyle}r!{\,}[ccccc]}
1 & 5 & 3.09 & 4.90 & - & \textbf{4.62} \\
2 & - & 2.89 & 4.69 & \textbf{3.49} & 4.42 \\
3 & 4.10 & 2.19 & - & \textbf{2.78} & 3.71 \\
4 & - & \textbf{1.00} & 2.49 & 1.29 & 2.22 \\
5 & 4.90 & - & \textbf{4.79} & 3.58 & 4.51 \\
6 & \textbf{4.88} & 2.96 & - & 3.56 & 4.48 \\
7 & 3.15 & \textbf{1.23} & 3.03 & 1.82 & - \\
8 & 4.84 & \textbf{2.92} & 4.72 & - & 4.61 \\
9 & \textbf{4.84} & 2.92 & 4.72 & 3.51 & - \\
10& \textbf{4.61} & - & 4.49 & 3.29 & 4.22 \\
\end{block}
\end{blockarray} \]%
\end{spacing}
\caption{}
\end{figure}
\end{document}
spacing
environment defined?setspace
package are meant to be employed n text mode. It's asking for trouble to use aspacing
environment inside a display-math environment. Don't do it. Instead, insert the instruction\renewcommand\arraystretch{0.8}
immediately after\[
.spacing
before