From b0e1bdfb0a7b285c384f090c733c1828a6f54a77 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Mon, 1 Jul 2024 17:09:23 -0400 Subject: [PATCH] Fix root multiplicity of 0 in JIT function --- src/galois/_polys/_dense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/galois/_polys/_dense.py b/src/galois/_polys/_dense.py index b1b3e289c..91b6050fe 100644 --- a/src/galois/_polys/_dense.py +++ b/src/galois/_polys/_dense.py @@ -487,7 +487,7 @@ def implementation(nonzero_degrees, nonzero_coeffs, primitive_element): # pragm # Test if 0 is a root if nonzero_degrees[-1] != 0: roots.append(0) - powers.append(-1) + powers.append(nonzero_degrees[-1]) # 0 has multiplicity equal to the lowest degree of x that is non-zero # Test if 1 is a root _sum = 0