def e(self, i): r""" Calculate the action of `e_i` on ``self``. EXAMPLES:: sage: KRT = KirillovReshetikhinTableaux(['D',4,1], 4, 1) sage: KRT([-1, -4, 3, 2]).e(1) [[1], [3], [-4], [-2]] sage: KRT([-1, -4, 3, 2]).e(3) """ half = TensorProductOfCrystalsElement.e(self, i) if half is None: return None return TensorProductOfCrystalsElement.e(half, i)
def e(self, i): r""" Return the action of `e_i` on ``self``. EXAMPLES:: sage: KRT = TensorProductOfKirillovReshetikhinTableaux(['D', 4, 1], [[2,1]]) sage: T = KRT(pathlist=[[4,3]]) sage: T.e(1) sage: T.e(2) [[2], [4]] """ if i != 0: return TensorProductOfCrystalsElement.e(self, i) return None
def e(self, i): """ Perform the action of `e_i` on ``self``. .. TODO:: Implement a direct action of `e_0` without moving to KR crystals. EXAMPLES:: sage: KRT = KirillovReshetikhinTableaux(['D',4,1], 2,2) sage: KRT.module_generators[0].e(0) [[-2, 1], [-1, -1]] """ if i == 0: ret = self.to_Kirillov_Reshetikhin_crystal().e0() if ret is None: return None return ret.to_Kirillov_Reshetikhin_tableau() return TensorProductOfCrystalsElement.e(self, i)