numpy array multiply value code example
Example 1: python numpy multiply matrices
a = np.array([[-6, 1], [1, 1]])
b = np.array([[0], [8]])
c = a.dot(b) # multiply matrice a and b
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.]])