Penyiaran matriks jarak Euclidean Numpy

 np.sqrt((np.square(a[:,np.newaxis]-b).sum(axis=2)))
Ashamed Alligator