Skip to content

Commit

Permalink
Refactor primitive_roots() to return an iterator
Browse files Browse the repository at this point in the history
- Also add `method` kwarg to `primitive_root()`
  • Loading branch information
mhostetter committed Mar 30, 2022
1 parent 4985853 commit fc52679
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 310 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/intro-to-prime-fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ There are multiple primitive elements of any finite field. All primitive element
@suppress
GF7.display("int")
galois.primitive_roots(7)
list(galois.primitive_roots(7))
GF7.primitive_elements
g = GF7(5); g
Expand All @@ -454,7 +454,7 @@ There are multiple primitive elements of any finite field. All primitive element
@suppress
GF7.display("power")
galois.primitive_roots(7)
list(galois.primitive_roots(7))
GF7.primitive_elements
g = GF7(5); g
Expand Down
Loading

0 comments on commit fc52679

Please sign in to comment.