title: NumPy - reshaping an array to 1-D
body: <p>I am having problems converting a NumPy array into a 1-D. I looked into ideas I found on SO, but the problem persists.</p>
  
  <pre><code>nu = np.reshape(np.dot(prior.T, randn(d)), -1)
  print 'nu1', str(nu.shape)
  print nu
  nu = nu.ravel()
  print 'nu2', str(nu.shape)
  print nu
  nu = nu.flatten()
  print 'nu3', str(nu.shape)
  print nu
  nu = nu.reshape(d)
  print 'nu4', str(nu.shape)
  print nu
  </code></pre>
  
  <p>The code produces the following output:</p>
  
  <pre><code>nu1 (1, 200)
  [[-0.0174428  -0.01855013 ... 0.01137508  0.00577147]]
  nu2 (1, 200)
  [[-0.0174428  -0.01855013 ... 0.01137508  0.00577147]]
  nu3 (1, 200)
  [[-0.0174428  -0.01855013 ... 0.01137508  0.00577147]]
  nu4 (1, 200)
  [[-0.0174428  -0.01855013 ... 0.01137508  0.00577147]]
  </code></pre>
  
  <p>What do you think might be the problem? What mistake I am doing?</p>
  
  <p>EDIT: prior is (200,200), d is 200. I want to get 1-D array: [-0.0174428  -0.01855013 ... 0.01137508  0.00577147] of size (200,). d is 200.</p>
  
  <p>EDIT2: Also randn is from numpy.random (from numpy.random import randn)</p>