title: Repeat a NumPy array in multiple dimensions at once?
body: <pre><code>np.repeat(np.repeat([[1, 2, 3]], 3, axis=0), 3, axis=1)
  </code></pre>
  
  <p>works as expected and produces</p>
  
  <pre><code>array([[1, 1, 1, 2, 2, 2, 3, 3, 3],
         [1, 1, 1, 2, 2, 2, 3, 3, 3],
         [1, 1, 1, 2, 2, 2, 3, 3, 3]])
  </code></pre>
  
  <p>However, </p>
  
  <pre><code>np.repeat([[1, 2, 3]], [3, 3])
  </code></pre>
  
  <p>and </p>
  
  <pre><code>np.repeat([[1, 2, 3]], [3, 3], axis=0)
  </code></pre>
  
  <p>produce errors.</p>
  
  <p>Is it possible to <code>repeat</code> an array in multiple dimensions at once?</p>