Skip to content

Commit

Permalink
Fix root multiplicity of 0 in JIT function
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Jul 1, 2024
1 parent 2d60e15 commit b0e1bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/galois/_polys/_dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0e1bdf

Please sign in to comment.