From fe354a84cbc940b9183cf8c8b8d84acf00f079a8 Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Mon, 24 Feb 2020 22:53:14 +0300 Subject: [PATCH] Fixed possible linear transormations Because we use only Z[2] instead of R or even Z --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 5088524..b2eb0a4 100644 --- a/main.cpp +++ b/main.cpp @@ -105,7 +105,9 @@ vector< MyMatrix > get_good_matrices() { vector< MyMatrix > res; for (size_t cur_val = 1ll << (ARGS_COUNT * ARGS_COUNT); cur_val != 0; --cur_val) { MyMatrix cur_matrix(cur_val); - if ( cur_matrix.get_determinant() != 0 ) + Storage det = cur_matrix.get_determinant(); + // if ( det %2 != 0 ) + if ( det == 1 or det == Storage(-1) ) res.push_back(cur_matrix); } return res;