-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: IntegerMatrix should supports mpz #268
Comments
this should do the work: for conveniences:
tested locally, i can compile |
Is |
I kind of agree with @malb here: are we going to support every multiprec python option by bringing it in as a requirement for fpylll? My suggestion would be to look at a generic solution that works for any bigint type of python object by manually chopping it in limbs and reconstruct it in the fplll mpz. |
i agree with your concern, and don't have any strong opinion on how should fpylll handles these. feel free to close this issue. (i was only hoping to use this issue as future reference in case anyone wants to use |
I wonder if we could add Marc's idea though: an interface that takes an input and repeatedly considers it mod MAX_INT_SIZE to construct the internal integer? This then may or may not be faster than just reading in a string? |
I was reading
assign_mpz
and see that even if internally the IntegerMatrix uses mpz, it doesn't accept value passed in as typempz
.ideally I want to do:
(p.s. altho I agree that SageMath support is good enough if I want to use multi-precision integers, it would requires me to go for sage's own virtualenv, unlike a simpler
gmpy2
package)The text was updated successfully, but these errors were encountered: