-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in nmod_poly
#124
Comments
I think what is needed is to have contexts for nmod so that there is somewhere to store whether or not the modulus is prime. Then operations that are not well defined for composite moduli could be rejected. |
Yeah I agree. I think this would also help users simply because then different polynomial objects would be used in the same way. |
I can see potentially two different kinds of contexts. The low-level version is sort of what A higher level version could be a user interface like: R = Zmod(10)
n = R(5)
p = R.poly([1, 2, 1])
M = R.matrix([[1, 2], [3, 4]])
s = R.series(...) Here the user does not need to create an I'm not sure if it would be better to have polynomial rings with distinct symbol names like
Something like this would likely be needed for mpoly. |
Yeah, this would be really nice but reminds me more of the "level above" when you were talking about the goals and different ideas. Here Whether we do: K = Zmod(10)
f = K.poly([1,2,3]) or K = Zmod(10)
R = PolynomialRing(K, 'x') # more like sage Is another question I suppose. |
Yeah, I'm getting sidetracked. We can just add an |
For
fmpz_mod_poly
we get an error when we cannot compute an inverse when performing operationsBut for
nmod_poly
we get a crash:The text was updated successfully, but these errors were encountered: