I am trying to multiply [[3],[1],[0]] with matrix [1,-1,3] using numpy. But it is not able to perform that.
import numpy as np
a = np.array([[3],[1],[0]])
b = np.array([1,-1,3])
x = np.dot(a,b)
print(x)
it is returning error as " ValueError: shapes (3,1) and (3,) not aligned: 1 (dim 1) != 3 (dim 0) "