title: How to multiply 3X1 matrix with 1X3 matrix using numpy
body: <p>I am trying to multiply [[3],[1],[0]] with matrix [1,-1,3] using numpy. But it is not able to perform that.</p>
  <pre><code>import numpy as np
  
  a = np.array([[3],[1],[0]])
  b = np.array([1,-1,3])
  
  x = np.dot(a,b)
  print(x)
  </code></pre>
  <p>it is returning error as &quot; ValueError: shapes (3,1) and (3,) not aligned: 1 (dim 1) != 3 (dim 0) &quot;</p>