PHCpack icon indicating copy to clipboard operation
PHCpack copied to clipboard

Wishlist: PHCpy for Python 3 without QD

Open d-torrance opened this issue 3 years ago • 1 comments

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:

https://github.com/janverschelde/PHCpack/blob/3ea105c2b6ec8d28a748ba1b67a4cf9a29cd4c2e/src/Mod/READ_ME#L28-L29

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!)

d-torrance avatar Jul 10 '21 19:07 d-torrance

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

janverschelde avatar Jul 17 '21 17:07 janverschelde