Efficient distance calculation between N points and a reference in numpy/scipy,"np.sqrt(np.sum((a - b) ** 2, axis=1))"