示例#1
0
 def __init__(self,module,modstr="",list=None):
     '''Constructor for a sub-module.
     '''
     self.module = module;
     if list == None:
        sr = StringReader( modstr );
        tok = GenPolynomialTokenizer(module.ring,sr);
        self.list = tok.nextSubModuleList();
     else:
        self.list = pylist2arraylist(list);
     self.mset = OrderedModuleList(module.ring,self.list);
     self.cols = self.mset.cols;
     self.rows = self.mset.rows;