Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def __pow__(self, other: AMinus.Generator) -> Module.TensorGenerator:
     assert self.rightmost_idempotent() == other.left_idempotent()
     return Module.TensorGenerator(self.module, self.key,
                                   self.left_idempotent,
                                   self.right_idempotent, self.left,
                                   self.right**other)