| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| cdef nmod_poly res | ||
|
|
||
| if e < 0: | ||
| raise ValueError("Exponent must be non-negative") |
There was a problem hiding this comment.
Would it make sense to use inverse_mod here?
Or maybe the caller should just do that if needed.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah good question. I don't think we invert where e is negative elsewhere, but this is a reasonable thing to do.
Sorry, something went wrong.
There was a problem hiding this comment.
Inverting does bring additional complications though because I think then we need the modulus to be irreducible.
Sorry, something went wrong.
|
Hopefully addressed the above comments |
Sorry, something went wrong.
|
Yep, looks good. Thanks |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
this PR adds two features which i need for a current project:
I'm a little rusty as I haven't thought about flint for a while, and there's one TODO for the __pow__ test as now fmpz_mod_poly does not raise an assertion error when a modulus is given generically