Answers for "multiply all values in array python numpy"

1

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.]])
Posted by: Guest on October-28-2020

Code answers related to "multiply all values in array python numpy"

Python Answers by Framework

Browse Popular Code Answers by Language