def translated(self, other):
    '\n        True if ``self`` is translated w.r.t. ``other``, False otherwise.\n\n        Examples\n        --------\n        Two candidates are translated if their bases are the same and\n        their offsets are pairwise translated.\n\n        c := A[i,j] op A[i,j+1]     -> Toffsets = {i: [0,0], j: [0,1]}\n        u := A[i+1,j] op A[i+1,j+1] -> Toffsets = {i: [1,1], j: [0,1]}\n\n        Then `c` is translated w.r.t. `u` with distance `{i: 1, j: 0}`\n        '
    if (len(self.Toffsets) != len(other.Toffsets)):
        return False
    if (len(self.bases) != len(other.bases)):
        return False
    if any(((b0 != b1) for (b0, b1) in zip(self.bases, other.bases))):
        return False
    for ((d0, o0), (d1, o1)) in zip(self.Toffsets, other.Toffsets):
        if (d0 is not d1):
            return False
        distance = set((o0 - o1))
        if (len(distance) != 1):
            return False
    return True
True if ``self`` is translated w.r.t. ``other``, False otherwise.

Examples
--------
Two candidates are translated if their bases are the same and
their offsets are pairwise translated.

c := A[i,j] op A[i,j+1]     -> Toffsets = {i: [0,0], j: [0,1]}
u := A[i+1,j] op A[i+1,j+1] -> Toffsets = {i: [1,1], j: [0,1]}

Then `c` is translated w.r.t. `u` with distance `{i: 1, j: 0}`
def translated(self, other):
    '\n        True if ``self`` is translated w.r.t. ``other``, False otherwise.\n\n        Examples\n        --------\n        Two candidates are translated if their bases are the same and\n        their offsets are pairwise translated.\n\n        c := A[i,j] op A[i,j+1]     -> Toffsets = {i: [0,0], j: [0,1]}\n        u := A[i+1,j] op A[i+1,j+1] -> Toffsets = {i: [1,1], j: [0,1]}\n\n        Then `c` is translated w.r.t. `u` with distance `{i: 1, j: 0}`\n        '
    if (len(self.Toffsets) != len(other.Toffsets)):
        return False
    if (len(self.bases) != len(other.bases)):
        return False
    if any(((b0 != b1) for (b0, b1) in zip(self.bases, other.bases))):
        return False
    for ((d0, o0), (d1, o1)) in zip(self.Toffsets, other.Toffsets):
        if (d0 is not d1):
            return False
        distance = set((o0 - o1))
        if (len(distance) != 1):
            return False
    return True