Esempio n. 1
0
 def endomorphismSpace2(self):
     pool.start_pool()
     endspace = parallel_weaksim(self.stconsts)
     x = endspace.get()
     endo = ParallelIntersection(x, packed=True).get()
     pool.stop_pool()
     return endo
Esempio n. 2
0
def compute_basis2(As, Bs):
    pool.start_pool()
    Lspaces = parallel_weaksim(Bs)
    Vspaces = parallel_weaksim(As, Bs)
    Lbasis = ParallelIntersection(Lspaces.get(), packed=True, nch=pool.PROCESSES/2)
    Vbasis = ParallelIntersection(Vspaces.get(), packed=True, nch=pool.PROCESSES/2)
    pool.stop_pool()
    return (Lbasis.get(), Vbasis.get())