 <p>I think you are looking for the <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.outer.html" rel="nofollow">outer product</a>:</p> <pre><code>&gt;&gt;&gt; P0 = np.outer(YDFA_P0, np.ones(N)) &gt;&gt;&gt; P0.shape (5, 1200) </code></pre>