Skip to content

Comments

Add file to construct fields in Sage#128

Open
divergentdave wants to merge 2 commits intogoogle:mainfrom
divergentdave:david/sage-field
Open

Add file to construct fields in Sage#128
divergentdave wants to merge 2 commits intogoogle:mainfrom
divergentdave:david/sage-field

Conversation

@divergentdave
Copy link
Contributor

This adds a Python file that handles constructing Sage finite field objects, for use throughout the rest of the reference implementation. This is similar to the code from #32 (comment), but with ^ and .<x> desugared, and using Python ints instead of sage.rings.integer.Integer. This module doesn't provide generators as exported module variables, to avoid confusion between variable names. Generators are instead only created inside function scopes. Other code that needs to access a generator element can call the field's gens() method later.

@divergentdave
Copy link
Contributor Author

I changed my mind on the name, I want to call this module fields to allow for arguments named field without shadowing variable names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant