I have a matrix A, described using an environment bmatrix as in the MWE below.
\documentclass{article}
\begin{document}
Consider the matrix
$A=\begin{bmatrix}
1 & 0 & -1 \\
2 & 3 & 1 \\
\end{bmatrix}$
Then its transpose is
$A^T=\begin{bmatrix}
1 & 2 \\
0 & 3\\
-1 & 1 \\
\end{bmatrix}$
\end{document}
How can I get the transpose of A without typing all its entries? In other word, is there an environment where \ means "end of column" instead of "end of row"?
I hope I could just paste and copy the definition of A and then change bmatrix to vbmatrix or whatever.
