I'd like to copy someone's notation for elementary matrices. Recall
Definition. An $n\times n$ elementary matrix is a matrix obtained by performing an elementary operation on $I_n$.
Here the three elementary operations are swap rows/columns, multiply row/column by a nonzero scalar, and add any scalar multiple of a row/column to another row/column.
Now consider the below image, where $A$ is an arbitrary $m\times n$ matrix and the first matrix is an elementary matrix of type 1, 2 and 3 respectively. Let ${u_1,u_2,\ldots,u_m}$ be the row vectors of $A$. Is this notation clear to you? Generally I like it and I'd like to replicate it, but without knowing how. I have two remarks though:
- the first elementary matrix that multiplies $A$, call it $E$, is a bit unclear I think. I don't know how else one would write it. It's supposed to be the identity matrix with 1s on the diagonal except at $E_{ii}$ and $E_{jj}$ where it is 0. Also $E_{ij}=E_{ji}=1$.
- I'd remove the dash from $i$-th and instead just write $i$th or simply $i$. Also, in a separate equation, I'd like to maybe write the exact same thing except for $A$ multiplied from the right by an elementary matrix and indicate the $i$th and $j$th column of the elementary matrix as done below for the rows.
Below is an unsatisfactory attempt at trying to copy the first elementary matrix. The row indications in \begin{matrix} don't properly align with the rows in \begin{pmatrix}. Appreciate any help on this.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$\begin{matrix}
\\
i\text{-th} \\
\\
j\text{-th} \\
\end{matrix}
\begin{pmatrix}
\ddots & & & & \\
& & & 1 & \\
& & \ddots & & \\
& 1 & & & \\
& & & & \ddots
\end{pmatrix}$$
\end{document}



