![]() |
![]() |
#1 |
Jul 2021
3×11 Posts |
![]()
Hi! Is there any gwnum-based long-integer-arithmetics library in Python?
There exists gmpy2 library but it is only GMP based, and I don't know if this GMP version is using gwnum or not. I heard that GMP can be compiled using gwnum support. Does anyone know if GMPY2 has this gwnum-based ready-made builds anywhere available for download? I need both Windows and Linux versions. Windows is of higher priority. If not GMPY2 then maybe some other gwnum-based library exists? Or maybe some C-bindings (or Cython) of gwnum for Python? First of all I need ability to modular square a huge number. Or just powmod(a, b, c), raising a to b modulus c. Why I want gwnum? I expect gwnum to be faster than regular GMP (without gwnum support). And I need fastest solution for my task in Python. Last fiddled with by moytrage on 2021-08-30 at 17:03 |
![]() |
![]() |
![]() |
#2 |
Sep 2002
Database er0rr
2·5·421 Posts |
![]() |
![]() |
![]() |
![]() |
#3 |
Jul 2021
3×11 Posts |
![]()
Thanks for reply! As I understand you suggest me to write my own C-binding library for Python using gwnum?
I understand that it is possible. But the only reason I posted this thread because I wanted to check if somebody already did this effort. Also there might exist not just plain bindings but some advanced and beautiful Python library based on gwnum. Of cause I would prefer to use such instead of regular bindings written in few hours. Basically I wanted to check if something ready made out-of-the-box already exists. Of cause otherwise I will write my C-bindings if nothing exists. |
![]() |
![]() |
![]() |
#4 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
2×5×659 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPL GWNUM | lavalamp | Software | 6 | 2020-12-11 07:53 |
GWNUM | enzocreti | enzocreti | 22 | 2019-03-14 18:35 |
LLR V3.8.2 using gwnum 26.2 is available! | Jean Penné | Software | 25 | 2010-11-01 15:18 |
GWNUM? | Unregistered | Information & Answers | 3 | 2010-09-12 19:52 |
GWNUM as DLL? | Cyclamen Persicum | Software | 1 | 2007-01-02 20:53 |