title: Wrong result of np.dot
body: <p>I'm new in python and I'm trying to do the multiplication of a 2d matrix with a 1d one. I use np.dot to do it but it gives me a wrong output. I'm trying to do this:</p>
  
  <pre><code>#X_train.shape = 60000
  w = np.zeros([784, 1])
  lista = range (0, len(X_train))
  for i in lista:
      score = np.dot(X_train[i,:], w)
  print score.shape
  </code></pre>
  
  <p>Out-> (1L,)</p>
  
  <p>the output should be (60000,1)</p>
  
  <p>Any idea of how I can resolve the problem?</p>