From 20f815136be8fea32f80a797f56a1ab2de2b61a5 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 27 Feb 2023 16:15:26 +0100 Subject: fix lgs --- math/lgsFp.cpp | 2 +- tcr.pdf | Bin 648962 -> 648971 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/math/lgsFp.cpp b/math/lgsFp.cpp index 13cdbd0..29ec849 100644 --- a/math/lgsFp.cpp +++ b/math/lgsFp.cpp @@ -15,7 +15,7 @@ void takeAll(int n, int line, ll p) { void gauss(int n, ll mod) { // Nx(N+1)-Matrix, Körper F_p. vector done(n, false); for (int i = 0; i < n; i++) { - int j = i; + int j = 0; while (j < n && (done[j] || mat[j][i] == 0)) j++; if (j == n) continue; swap(mat[i], mat[j]); diff --git a/tcr.pdf b/tcr.pdf index b4c7c17..ed22578 100644 Binary files a/tcr.pdf and b/tcr.pdf differ -- cgit v1.2.3