title: Stacking Numpy Arrays repeatedly
body: <p>This might be an easy question, nevertheless I'm trying to get an answer ;)
  I want to create a 3D numpy array, which is a repeated copy of another subarray, with a given number of copys.</p>
  
  <p>In 1-D this is what I wanna do: a=[0,1,0], factor=3 leads to b=[0,1,0,0,1,0,0,1,0]</p>
  
  <h2>My ideas so far:</h2>
  
  <p>-Creating the bigger array and slicing the subarray into it (is it possible to do that somehow itteratively inside the slice?). </p>
  
  <p>-Building a list and using hstack, vstack and dstack.</p>
  
  <pre><code>for i in range(factor):
      array_list.append(data)
  data=np.hstack(array_list)
  for i in range(factor):
      array_list.append(data)
  data=np.vstack(array_list)
  for i in range(factor):
      array_list.append(data)
  </code></pre>
  
  <p>This works but seems not to be a nice and readable solution and even pretty memory hungry as the list has to be recreated after each stacking process. For me, the 3D case is interesting, but for the discussion it could be interesting to make that work even in higher dimensions.</p>