summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/lgsFp.cpp2
-rw-r--r--tcr.pdfbin648962 -> 648971 bytes
2 files changed, 1 insertions, 1 deletions
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<bool> 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
--- a/tcr.pdf
+++ b/tcr.pdf
Binary files differ