Sure. Below is the module-level function that I want to give the decorator. All arguments are themselves class attributes (numpy.ndarray type) at higher levels, if that matters; they are explicitly provided individually as args:
The issue is that as I understand it, I’m supposed to be able to pass a generator object, which you haven’t done in your code. See below, which fails when passing the Generator object:
hi, support for generator seems to expanding from a basic support in 0.56 to better support in 0.57, look at the list of PRs Pull requests · numba/numba · GitHub
your example is working for me using the latest main branch. I think this means that support for uniform is coming in 0.57
Numba 0.56.x series contains support for passing np.random.Generator instances as arguments to numba.jit compiled functions, returning instances from the same, and support for the Generator().random() method (this is noted in the Numba documentation).
Numba 0.57.x series will contain support for a much larger range of methods found on Generator instances (almost all of them!), but will not have support for constructing Generator instances and will still not be thread-safe (both require a lot more work).
@bjmi no problem! An 0.57 release candidate will be out sometime soon, an announcement will be posted to this forum when it arrives, feedback RE the Generators (and anything else) is welcomed.