Tech Journey Forward
Saturday, April 11, 2020
Comparison of np.dot and operator *
np.dot calculate the dot product of two arrays. For 2-D arrays, the matrix multiplication result is returned.
The * operator calculate the element-wise multiplication. It will expand its dimension (called broadcasting) if the dimension does not match.
The best way to explain this is through some actual code
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment