def test_bkz(): for d in dimensions: # Primal A = make_integer_matrix(d) g6k = Siever(A) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) # Dual A = make_integer_matrix(d) g6k = Siever(A) with g6k.temp_params(dual_mode=True): bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) # Primal then Dual A = make_integer_matrix(d) g6k = Siever(A) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) with g6k.temp_params(dual_mode=True): bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) # Slide A = make_integer_matrix(d) g6k = Siever(A) block_size = 25 if d == 50 else 20 slide(g6k, dummy_tracer, block_size, overlap=10) slide(g6k, dummy_tracer, block_size, overlap=10) slide(g6k, dummy_tracer, block_size, overlap=10)
def test_bkz(): for d in dimensions: # Primal A = make_integer_matrix(d) g6k = Siever(A) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) # Dual A = make_integer_matrix(d) g6k = Siever(A) with g6k.temp_params(dual_mode=True): bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) # Primal then Dual A = make_integer_matrix(d) g6k = Siever(A) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) with g6k.temp_params(dual_mode=True): bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20) bkz(g6k, dummy_tracer, 20)