Skip to content
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

Do not harcode PPL_Coefficient (?) #2

Open
videlec opened this issue Aug 23, 2022 · 0 comments
Open

Do not harcode PPL_Coefficient (?) #2

videlec opened this issue Aug 23, 2022 · 0 comments

Comments

@videlec
Copy link
Collaborator

videlec commented Aug 23, 2022

moved from gitlab issue #14

PPL supports computations with various coefficient types but this is hardcoded at PPL compilation time in typedef PPL_COEFFICIENT_TYPE Parma_Polyhedra_Library::Coefficient. The most standard (and default) configuration option for PPL turns out to be GMP integers.

The pplpy library assumes that the coefficient type is mpz as can be seen in the Cython declaration in ppl_decl.pxd

ctypedef mpz_class PPL_Coefficient  "Parma_Polyhedra_Library::Coefficient"

We might want pplpy to support other Checked_Number class and this should just be a matter of figuring out what compilation option has been used for PPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant