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

Wishlist: PHCpy for Python 3 without QD #53

Open
d-torrance opened this issue Jul 10, 2021 · 1 comment
Open

Wishlist: PHCpy for Python 3 without QD #53

d-torrance opened this issue Jul 10, 2021 · 1 comment

Comments

@d-torrance
Copy link
Contributor

d-torrance commented Jul 10, 2021

From what I understand, there are two versions of the Python 2 PHCpy that just used doubles instead of the higher precision floating point types from the QD library:

PHCpack/src/Mod/READ_ME

Lines 28 to 29 in 3ea105c

phcpy2cadepath_d.cpp : C++ extension of phcpy2c with Path (CPU) for doubles
phcpy2cpath_d.cpp : C++ extension of phcpy2c with Path (GPU) for doubles

It would be great if these could be ported to Python 3, since the QD library has a non-free license and Python 2 has reached its end of life.

(I was able to hack together a double-only Python 3 version for the Debian package by linking against lib2path_d and deleting a bunch of dd_real and qd_real stuff from various source files, but I'm sure there's probably a better way!)

@janverschelde
Copy link
Owner

Thanks for the hack. The QD library should indeed become optional.
Recently code generated by the CAMPARY software was applied for multiple double arithmetic.

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

2 participants