From 9494f8551a1afede5954ab43351e86d2722f0f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 22 May 2015 02:21:13 +0200 Subject: Fix problem with swapped columns numbering --- scripts/evaluate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/evaluate.py b/scripts/evaluate.py index b4159ea..b3b2a15 100755 --- a/scripts/evaluate.py +++ b/scripts/evaluate.py @@ -79,7 +79,10 @@ def reduce_matrix(A, symrow, bases): i -= 1 # Search for Bases - basesx = reduce_matrix_search_for_base(columns) + columnsr = [] + for i in range(len(columns) - 1, -1,-1): + columnsr.append(columns[i]) + basesx = reduce_matrix_search_for_base(columnsr) if bases: for base in basesx: bases[0].append(base) -- cgit v1.2.3