casevh

Results 150 comments of casevh

Do you even need `exact`? In gmpy2, `mpfr` currently accepts `base` and `precision` keywords. You could add an `exact` keyword that will raise an exception is the conversion is inexact....

Just an update from gmpy2 - I'm experimenting with a context flag called quiet_nan. If True, propagating NaN does not set the NaN flag. If False, the behavior of the...

Hi, I'm not familiar with OSX development tools so I really can't offer any suggestions on the 10.6 versus 10.12 compiler issue. The thread local error with mpfr can probably...

Hi Jeff, I think those errors are safe to ignore. Regarding the option needed to compile, I'm not sure how I could auto-detect the proper value that should be there....

This will become more important when MPFR 4 is released. That version will add new functions and fix a possible memory leak when using threads that created cached constants. I...

I tried three tests. ``` $ py311 -m timeit -r10 -s 'from gmpy2 import fac as f, mpz as z;from pickle import dumps as d' -s 'a=f(z(1000))' 'd(a)' 50000 loops,...

Hi! I'm not familiar with the use of cython.parallel.prange so I can't help with that. `gmpy2 2.1` introduced support for releasing the GIL for many operations involving the `mpz` type....

I've committed the patch to allow `powmod` and `powmod_sec` to release the GIL. Sample code is in `demo/parallel_powmod.py` If you can test the github version, that would great.

Please run the full demo. Releasing the GIL allows the Python interpreter to run another thread. You need to create multiple threads and allocate the work across multiple threads. To...

I seen something similar as I've been playing around with different options to create_tests(). I suspect that re-acquiring the GIL behaves badly if the execution time of powmod() is too...