title: How do you multiply a column vector with a row vector using @ in Python?
body: <p>I'm running the following Python code:</p>
  
  <pre><code>import numpy as np
  a=np.array([1,2])
  b=np.array([3,4])
  a@b #11
  a.T@b #11
  a@b.T #11
  a.T@b.T #11
  </code></pre>
  
  <p>All four operations give the dot product. It was my understanding that <code>a</code> and <code>b</code> would be row vectors, so <code>a.T@b</code> would give a 2x2 matrix. What am I misunderstanding here and how do I matrix multiply the column vector of <code>a</code> with the row vector of <code>b</code>?</p>