[Tex/LaTex] the matrix doesnt fit the page

matrices

I have this equation that doesnt fit the page

\documentclass[11pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{equation*}
[a_{ii}]=[\phi]^T[A][\phi]=\begin{bmatrix}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{bmatrix}
\end{equation*}



\end{document}

How can I correct it??

Best Answer

Yet another possibility is negative space as column separator.

\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
\newcommand\shrink{\hspace{-3em}}
\begin{align*}
[a_{ii}]&=[\phi]^T[A][\phi]\\
&=
\left[\begin{array}{@{}c@{\shrink}c@{\shrink}c@{\shrink}c@{}c@{\hspace{-0.5em}}c@{}}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{array}
\right]
\end{align*}
\end{document}

enter image description here