]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix problem with swapped columns numbering
authorKarel Kočí <cynerd@email.cz>
Fri, 22 May 2015 00:21:13 +0000 (02:21 +0200)
committerKarel Kočí <cynerd@email.cz>
Fri, 22 May 2015 00:21:13 +0000 (02:21 +0200)
scripts/evaluate.py

index b4159ea99ea669004a932c6cf6c382bfbb334481..b3b2a156ab2526e100cfe4a7db5541c5a4e50e7e 100755 (executable)
@@ -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)