def __rpow__(self, other: AMinus.Generator) -> TensorAlgebra.Element: return other.to_element()**self
def __rpow__(self, other: AMinus.Generator) -> Module.TensorGenerator: assert other.right_idempotent() == self.leftmost_idempotent() return Module.TensorGenerator(self.module, self.key, self.left_idempotent, self.right_idempotent, other**self.left, self.right)
def __rpow__(self, other: AMinus.Generator) -> TensorAlgebra.Generator: assert self.right_idempotent() is None or other.left_idempotent() is None \ or self.right_idempotent() == other.left_idempotent() return TensorAlgebra.Generator(self.tensor_algebra, (other, ) + self.factors)
def __rpow__(self, other: AMinus.Generator) -> Module.TensorElement: return other.to_element()**self