Numpy calculate product of differences of two matrices against all rows in matrix
the following is what I want to achieve. Is there a way to do this efficiently with Numpy or other methods in Python? Since my data would be big. I would like to do it more efficiently. Thank you in advance. import numpy as np x = np.arange(6).reshape(3,2) y = np.arange(10).reshape(5,2) z = np.zeros((len(x), len(y)))… Read More Numpy calculate product of differences of two matrices against all rows in matrix