“Numpy Multiply Element weise” Code-Antworten

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.]])
Outstanding Oystercatcher

Numpy Multiply Element weise

import numpy as np
a = np.array([[1,2],[3,4]])
b = np.array([[5,6],[7,8]])
np.multiply(a,b)
Michelle Chong

Ähnliche Antworten wie “Numpy Multiply Element weise”

Fragen ähnlich wie “Numpy Multiply Element weise”

Weitere verwandte Antworten zu “Numpy Multiply Element weise” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen