np.multiply

Usage: np.multiply (x1, x2),
action: the element-wise multiplication, if x1 and x2 are scalars, scalar return

x1=np.array([1,4,2])
x2=np.array([2,5,3])
np.multiply(x1,x2)

Out[43]: array([ 2, 20, 6])

 

Guess you like

Origin www.cnblogs.com/liuys635/p/11231811.html