pyculib icon indicating copy to clipboard operation
pyculib copied to clipboard

2-D QRNG not implemented

Open g13 opened this issue 6 years ago • 0 comments

It seems that 2-D quasi rng generator is not implemented, is that so? test code:

rands = np.empty((2,10), dtype='uint32')
randGen = rand.QRNG(rndtype = rand.QRNG.SCRAMBLED_SOBOL32, ndim=2, offset = 0)
randGen.generate(rands)

gives the error:

TypeError: Only accept 1-D array

and top level QRNG function although takes the "nd" parameter, it never generates a ndarray

rand.quasi(10, nd=2)

g13 avatar Jan 13 '19 15:01 g13