def euclidean_distance(a, b):
    """Return the array of distances of two numpy arrays of points."""
    return np.linalg.norm(a - b, axis=1)
Return the array of distances of two numpy arrays of points.
src/distance.py