Ask Your Question
0

How to use finite fields in cython?

asked 4 years ago

To use finite fields there is the function GF.
It works well in python, but produces the following error in cython:
undeclared name not builtin: GF

How to use finite fields in cython?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

tmonteil gravatar image

GF is a shortcut for FiniteField, so you can declare it as follows:

from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF

In case something like this reappears, there is a very handy helper function to discover import statements : import_statements

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 371 times

Last updated: May 14 '20