-
Notifications
You must be signed in to change notification settings - Fork 263
Add gr_poly_add_scalar
, gr_poly_sub_scalar
, etc.
#2194
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
Conversation
I'll add |
b431da5
to
5f3a2d2
Compare
33590bb
to
ab2a82d
Compare
Any idea why the CI is failing? |
ab2a82d
to
d8feeee
Compare
The test Line 4261 in 4a89949
mpn_mod . After trying to force some output I get:
Not sure what's going on. |
Not sure if this is the only problem, but you need to normalise the output polynomial in the ui, si, fmpz and fmpq methods in the case where len == 0 and c != 0, the reason being that in finite characteristic, c can still convert to zero. It's unfortunate that the test code doesn't catch this! I think we need some stronger tests for normalisation. |
See #2223. |
Even so, |
d8feeee
to
53f185d
Compare
@fredrik-johansson Thanks! This should be good to go now ( |
Great, thank you! |
Let me know if there's any way to shorten the code.
gr_poly_add_si
,gr_poly_sub_si
, etc. #2193