Amazing job with the numba version 0.52.0, I would like to report what seems to be an unexpected behaviour (in my limited experience)
a = np.asarray([[1,2,-3,-3,4],[0,0,0,0,0]]) #This works without njiting @njit def fii(arr, val): return np.delete(arr, np.where(arr==val)) fii(a, -3)
The point is that with arr (input arr) is a 1D array; njited fii() only works if np.where does not return the tuple ([whatever indexes],)
'''this works:''' a = np.asarray([1,2,-3,-3,4]) #Does not work if you don't delete the tuple returned by np.where @njit def fii(arr, val): return np.delete(arr, np.where(arr==val)) fii(a, -3)
If using numpy, it works correctly in all the cases, is this something expected?
Thanks a lot and congrats on your amazing job!