I am trying to write a function that initialises an array and shuffles it before returning. import numba as nb
@nb.jit(nopython=True, cache=True)
def test(x):
ind = np.array(range(len(x)))
np.random.shuffle(ind)
return ind
Error message said that I used unsupported features or data types:
NotImplementedError: range_state_int64 cannot be represented as a Numpy dtype
Does numba supports numpy.random.shuffle() or not? How to revise it? Thank you!