Пример #1
0
 def __rpow__(self, other: AMinus.Generator) -> TensorAlgebra.Element:
     return other.to_element()**self
Пример #2
0
 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)
Пример #3
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)
Пример #4
0
 def __rpow__(self, other: AMinus.Generator) -> Module.TensorElement:
     return other.to_element()**self