From 91ce3ba4a994868830f5b08cc6a3fe7e9273315b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ekera=CC=8A?= Date: Mon, 8 Apr 2024 06:19:09 +0200 Subject: [PATCH] Removed two cancelling transpositions --- simulator.sage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simulator.sage b/simulator.sage index 5232344..370fe0e 100644 --- a/simulator.sage +++ b/simulator.sage @@ -605,7 +605,7 @@ def solve_samples_for_factors(samples, N, d, R, verbose = True): if X.row_space() != M.transpose().row_space(): raise Exception("Error: Failed to run LLL (3)."); - LB = X[:d, :d].transpose(); + LB = X[:d, :d]; # Build the a and b vectors. [a, b] = build_a_b_vectors(d); @@ -620,7 +620,7 @@ def solve_samples_for_factors(samples, N, d, R, verbose = True): # Setup the factor collection. factors = FactorCollection(N); - for v in LB.transpose(): + for v in LB: A = prod([R(a[i])^v[i] for i in range(d)]); B = prod([R(b[i])^v[i] for i in range(d)]);