python numpy element wise multiplication code example
Example 1: how to do element wise multiplication in numpy
numpy.multiply(arr1, arr2)
Example 2: np.multiply
>>> x1 = np.arange(9.0).reshape((3, 3))
>>> x2 = np.arange(3.0)
>>> np.multiply(x1, x2)
array([[ 0., 1., 4.],
[ 0., 4., 10.],
[ 0., 7., 16.]])