title: Numpy.dot nests vector when multiplying
body: <p>When I multiply an nxn matrix by a nx1 vector, I get back a nested vector. How do I avoid this or how do I recover the vector.</p>
  
  <p>Examples:</p>
  
  <p>Using @ operator</p>
  
  <pre><code>A = np.matrix([[1,4,3],[2,2,1],[5,4,2]])
  v = np.array([1,2,3])
  A @ v =&gt; RuntimeError: Iterator automatic output has an array subtype which changed the dimensions of the output
  </code></pre>
  
  <p>Using np.dot</p>
  
  <pre><code>np.dot(A,v) =&gt; matrix([[18,9,19]])
  </code></pre>
  
  <p>Here the vector is nested and is a matrix of shape (3,1). I just want a vector of length 3 (i.e. of shape (3,))</p>
  
  <p>If I had declared the matrix as an array, using the @ operator would've worked just fine, but I can't do this for this homework exercise.</p>