def distances(A, B):
    '\n    Compute distances between points in entrywise order.\n    '
    (AA, BB) = broadcast_arrays(A, B)
    shape = AA.shape
    if DEBUGGING:
        _check_ndim('AA', AA, 2)
        _check_ndim('BB', BB, 2)
        _check_shape('AA', AA, 2, axis=1)
        _check_shape('BB', BB, 2, axis=1)
    return hypot((AA[:, 0] - BB[:, 0]), (AA[:, 1] - BB[:, 1]))[:, AX]
Compute distances between points in entrywise order.
def distances(A, B):
    '\n    \n    '
    (AA, BB) = broadcast_arrays(A, B)
    shape = AA.shape
    if DEBUGGING:
        _check_ndim('AA', AA, 2)
        _check_ndim('BB', BB, 2)
        _check_shape('AA', AA, 2, axis=1)
        _check_shape('BB', BB, 2, axis=1)
    return hypot((AA[:, 0] - BB[:, 0]), (AA[:, 1] - BB[:, 1]))[:, AX]