In [1]:
import numpy as np
In [2]:
x = [1, 2, 3]
y = [4, 5, 6]
np.dot(x, y)
Out[2]:
In [3]:
np.matmul(x, y)
Out[3]:
In [4]:
z = [[1],
[2],
[3]]
In [5]:
np.matmul(x,z)
Out[5]:
In [8]:
np.shape(z)
Out[8]:
In [9]:
np.shape(x)
Out[9]:
In [ ]: