\documentclass{article}
\usepackage{easybmat}
%\usepackage{etex} % if you also want tikz, then you also need etex,
%\usepackage{tikz} % and they have to be loaded AFTER easybmat
\newenvironment{bvec}[1]{\begin{BMAT}(r)[0pt]{c}{#1}}{\end{BMAT}}
\newenvironment{pbvec}[1]{\left(\begin{bvec}{#1}}{\end{bvec}\right)}
\begin{document}
$span \{
\begin{pbvec}{ccccc} 1 \\ \vdots \\ \vdots \\ 1 \\ 1 \end{pbvec},
\begin{pbvec}{ccccc} 0 \\ 1 \\ \vdots \\ \vdots \\ 1 \end{pbvec},
\begin{pbvec}{ccccc} 0 \\ 0 \\ 1 \\ \vdots \\ 1 \end{pbvec}
\begin{bvec}{ccccc} \cdots \\ {} \\ \ddots \\ \ddots \\ \cdots \end{bvec}
\begin{pbvec}{ccccc} 0 \\ \vdots \\ \vdots \\ 0 \\ 1 \end{pbvec}
\}$
\end{document}
which results in
There are a few annoying things with BMAT:
You must declare the number of columns at the top (I have no idea why, but I guess this has to do with the fact that they can be align differently or something)
You cannot have empty rows (see {} in the fourth line).
One way would be to use the TikZ matrix library. The arrows may be added using a simple loop and the automatic names assigned by the matrix of nodes operation.
Best Answer
This is a fairly faithful reproduction of the matrix using the
nicematrix
package.The solid lines were drawn using the package's ability to insert tikz commands (with
\CodeAfter
) between the nodes it creates in the cells.Requires compiling twice.