예제 #1
0
 def toDGenerator(self, new_parent):
     """Convert to a generator of a type D structure over the bialgebra."""
     new_idem = TensorIdempotent((self.idem1, self.idem2))
     new_gen = DGenerator(new_parent, new_idem)
     new_gen.__dict__.update(self.__dict__)
     new_gen.parent, new_gen.idem = new_parent, new_idem
     return new_gen
예제 #2
0
    def __init__(self, parent, gen_left, gen_right):
        """Specify generators on two sides of the tensor (DA/DD and D
        generators).

        """
        # Note tuple initialization is automatic
        DGenerator.__init__(self, parent, gen_left.idem1)
        self.gen_left = gen_left
        self.gen_right = gen_right
        filt = []
        if hasattr(gen_left, "filtration"):
            filt += gen_left.filtration
        if hasattr(gen_right, "filtration"):
            filt += gen_right.filtration
        if filt != []:
            self.filtration = filt
예제 #3
0
파일: DAstructure.py 프로젝트: al3393/dfh-1
 def __init__(self, parent, gen_left, gen_right):
     DGenerator.__init__(self, parent,
                         gen_left.idem)  # missing come back and fill in
예제 #4
0
파일: DAstructure.py 프로젝트: al3393/dfh
 def __init__(self, parent, gen_left, gen_right):
     DGenerator.__init__(self, parent, gen_left.idem) # missing come back and fill in
예제 #5
0
파일: digraph.py 프로젝트: bzhan/bfh_python
    def __init__(self, parent, gen_left, gen_right):
        """Specify generators on two sides of the tensor (D and DD generators).

        """
        # Note tuple initialization is automatic
        DGenerator.__init__(self, parent, gen_right.idem2)
예제 #6
0
 def __init__(self, parent, source, coeff, target):
     """Specifies the morphism source -> coeff * target."""
     DGenerator.__init__(self, parent, source.idem2.opp())
     MorObject.__init__(self, source, coeff, target)