I have two matrices
a = np.matrix([[1,2], [3,4]]) b = np.matrix([[5,6], [7,8]])
and I want to get the element-wise product, [[1*5,2*
[[1*5,2*
just do this:
import numpy as np a = np.array([[1,2],[3,4]]) b = np.array([[5,6],[7,8]]) a * b