In [1]:
import numpy as np

A = np.array([[1, 2], [3, 4]])
B = np.array([10, 20])

A * B


Out[1]:
array([[10, 40],
       [30, 80]])

In [ ]: