title: Turn a 1D array into nD array?
body: <p>I have a 784 element 1-dimensional array that is a flattened 28x28 image. </p>
  
  <p>Is there a nice, snappy, numpy/scipy procedure for translating that 784 element array into a 28x28 array?</p>
  
  <p>Or do I have to do: </p>
  
  <pre><code>for i in range(0,28):
      for j in range(0,28):
             my_image[i,j] = oneD_vector[28*i + j]
  </code></pre>