Horizontal line representing row vector in matrix
Saying simply \vline
is not the best method, in my opinion. Try
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\begin{pmatrix}
\kern.6em\vline & \kern.2em\vline\kern.2em & \vline\kern.6em \\
\kern.6em\vline & \kern.2em\vline\kern.2em & \vline\kern.6em \\
\kern.6em\vline & \kern.2em\vline\kern.2em & \vline\kern.6em \\
\end{pmatrix}
\begin{pmatrix}
\rule[.5ex]{3.5em}{0.4pt}\\
\rule[.5ex]{3.5em}{0.4pt}\\
\rule[.5ex]{3.5em}{0.4pt}
\end{pmatrix}$
\end{document}
Here is a mild mockup of two different approaches that doesn't require amsmath
. The second requires graphicx
though. It duplicates your existing column representation, just horizontally:
\documentclass{article}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\begin{document}
\[
\left(
\begin{array}{ccc}
\vline & \vline & \vline \\
\vline & \vline & \vline \\
\vline & \vline & \vline
\end{array}
\right) \quad
\left(
\begin{array}{p{3em}}
\raisebox{.5ex}{\rule{3em}{.4pt}} \\[\dimexpr-2\normalbaselineskip+2\tabcolsep]
\raisebox{.5ex}{\rule{3em}{.4pt}} \\[\dimexpr-2\normalbaselineskip+2\tabcolsep]
\raisebox{.5ex}{\rule{3em}{.4pt}}
\end{array}
\right)
\]
\[
\left(
\begin{array}{ccc}
\vline & \vline & \vline \\
\vline & \vline & \vline \\
\vline & \vline & \vline
\end{array}
\right) \quad
\left(
\begin{array}{c}
\rotatebox{90}{$
\begin{array}{ccc}
\vline & \vline & \vline \\
\vline & \vline & \vline \\
\vline & \vline & \vline
\end{array}$}
\end{array}
\right)
\]
\end{document}