def pairwise_unit_diffs(A, B):
    '\n    Compute attracting unit-vector differences between pairs of points.\n    '
    DD = pairwise_position_deltas(A, B)
    D_norm = hypot(DD[(..., 0)], DD[(..., 1)])
    nz = D_norm.nonzero()
    DD[nz] /= D_norm[nz][(..., AX)]
    return DD
Compute attracting unit-vector differences between pairs of points.
def pairwise_unit_diffs(A, B):
    '\n    \n    '
    DD = pairwise_position_deltas(A, B)
    D_norm = hypot(DD[(..., 0)], DD[(..., 1)])
    nz = D_norm.nonzero()
    DD[nz] /= D_norm[nz][(..., AX)]
    return DD