I have the following code structure:
result_matrix = np.zeros((n,n))
for i in range(data1.shape[0]):
for j in range(data1.shape[1]):
result_matrix[i,j] = myfct(data1[i,:], data2[:,j])
Can we solve this with a more numpy-y way - possibly with ufunc
?