I have a hundred arrays of 288 and I need to compute a distance matrix for all of the arrays, it works with the code below in aprox. 10 seconds. Is there a more efficient way to do this because it needs to be done with 50000 arrays and it takes too much time.
dist=np.zeros((100,100))
pf = np.array(purpose_fin)
for i in range(100):
for j in range(100):
dist[i][j] = 288-sum(np.equal(pf[i],pf[j]))