Ask Your Question
0

How to use finite fields in cython?

asked 2020-05-14 22:40:35 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2020-05-14 22:59:33 +0100

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

edit flag offensive delete link more

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: 2020-05-14 22:40:35 +0100

Seen: 349 times

Last updated: May 14 '20