In [1]:
import numpy as np

In [2]:
x = [1, 2, 3]
y = [4, 5, 6]
np.dot(x, y)


Out[2]:
32

In [3]:
np.matmul(x, y)


Out[3]:
32

In [4]:
z = [[1],
    [2],
    [3]]

In [5]:
np.matmul(x,z)


Out[5]:
array([14])

In [8]:
np.shape(z)


Out[8]:
(3, 1)

In [9]:
np.shape(x)


Out[9]:
(3,)

In [ ]: