1

Suppose I have some real-valued vector $v$ with dimension $K$. How can I convert $v$ to some matrix $M$ such that each row of $M$ is an instance of $v$? Is there a way to do this mathematically?

1 Answers1

3

If $v$ is a row vector and $\textbf{1}_K$ the $K$-dimensional vector of ones, then $\textbf{1}_K v^T$ is a matrix with $v$ in each row, where the superscript $T$ is transpose. Is that what you were looking for?