Is there any difference in using
import numpy as np
a, b = np.random([1024, 1024]), np.random([1024, 1024])
c = np.multiply(a, b)
over
c = a * b
or is the *
-Operator on numpy-arrays simply overridden with np.multiply
?
Edit: This question is marked as duplicate because a question asks the same thing about the division operator (np.divide()
vs /
) and similar answers followed, but unless it is changed to "numpy arithmetic vs. python arithmetic" or something of the kind, it won't help people wondering the same thing as I did (about multiplication) and not being "clever" enough to assume a question about a related arithmetic operation (division) generalizes to all the basic arithmetic operations. To make it easier finding answers, I'd advocate for keeping this question as is.