title: What is the effect of using np.dot on two vectors?
body: <p>This problem is to do with the numpy library.</p>
  
  <p>From previous experience np.dot is the same as matrix multiplication. However I was under the assumption that multiplying two vectors is impossible as the dimensionality is wrong. So my question is, what does np.dot actually do to two vectors?</p>
  
  <p>Furthermore, say I had the following code and assuming np.dot produces a scalar (as it says on the documentation).</p>
  
  <pre><code>x= np.dot(dc, self.c)[:self.ys]
  </code></pre>
  
  <p>where x is also a vector, how does the operation [:self.ys] change the result of the two vectors in an np.dot into a vector? I cannot find anything detailing on this.</p>