Add gr_poly_add_scalar, gr_poly_sub_scalar, etc.#2194
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