예제 #1
0
def get_factorize_in_serial(num_factors):
    start_time=time.time()
    Fact = []
    for i in num_factors:
        Fact.append(factorize(i))
    return Fact, time.time()-start_time
예제 #2
0
def get_factorize_in_ipython_parallell(num_factors):
    from Dalmo.session7 import factorize
    Fact = []
    for i in num_factors:
        Fact.append(factorize(i))
    return Fact