# How to center multi column multi row environment in matrix

Using this I was able to create a big zero but how can I center it? I'm a bit lost on the horizontal space. How can I center the 0_{3 \times 3} in this matrix. My code:

\documentclass{article}
\usepackage{scalerel,amsmath,arydshln}
\author{someone}
\title{something}
\begin{document}
\maketitle
\begin{aligned} A=\left[\begin{array}{ccc;{1pt/2pt}ccc} 0&1&0&&&\\ 0&0&1&&&\\ 2&1&-1&\multicolumn{3}{c}{\raisebox{\dimexpr\normalbaselineskip+.3\ht\strutbox+0\height}[0pt][0pt]{\scalebox{2}{0_{\scaleto{3\times 3}{3pt}}}}} \end{array}\right] \end{aligned}
\end{document}


Is there no easier way to create a matrix like this with some package?

\documentclass{article}
\usepackage{scalerel,amsmath,arydshln}
\author{someone}
\title{something}
\begin{document}
\maketitle
\begin{aligned} A=\left[\begin{array}{c;{1pt/2pt}c} \begin{array}{@{}ccc@{}} 0&1&0\\ 0&0&1\\ 2&1&-1 \end{array}& \begin{array}{@{}c@{}} \scalebox{2}{0_{\scaleto{3\times 3}{3pt}}} \end{array} \end{array}\right] \end{aligned}
\end{document}


• Thank you. I've not seen @ being used like this in array. Can you further your explaining of what you have done? – Al_Fh May 5 '19 at 6:41
• @Al_Fh @{<a>} will add <a> between the column at the position. Try with @{AlFh}, you will see the difference. I use @{} to remove all space between the text of the columns. See more: tex.stackexchange.com/a/207463/156344 – user156344 May 5 '19 at 13:57
• Thanks for the response, Greatly appreciated – Al_Fh May 5 '19 at 14:28