I have the following definition of a standard basis vector:
This text was compiled by the following code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
For $ \mathbb{R}^n $, we let $e_j \in \mathbb{R}^n$ (the standard basis vector)
denote the vector with a 1 in the $j$-th entry and 0 elsewhere:
\[
e_j = \begin{pmatrix} 0 \\ \vdots \\ 0 \\ 1 (\text{jth spot}) \\ 0 \\ \vdots \\ 0 \end{pmatrix}
.\]
\end{document}
But I don't like the way the entry marked as the "jth spot" comes out. I would like some way to maybe take that description out and put it next to it outside of the matrix. How could I do this?
Edit: I know that, in this case, it is possible to do this just by writing j\text{th spot}
right next to the matrix, since the 1 happens to be in the center of the matrix. However, I don't like this solution because it doesn't generalize to other spots in the matrix. What other ways are there to do this?
e_{ji}
with i in range [1, n] where onlye_{jj}
is 1. This seems like a basic thing the world of mathematics should have an agreed-upon notation for, doesn't it? Your notation I haven't seen. It definitely would make sense to leave the1
inside and maybe point an arrow towards it with the text. But that's not really a good textbook notation, is it?