Assume an array like so:
a = np.arange(10)
I'd like to delete the numbers from index 2 to 5.
I can do it like this:
a = np.delete(a, np.s_[2:6])
Now a contains [0, 1, 6, 7, 8, 9]. However this function is not supported by Numba, and I need to compile this code using Numba.
I would need to accomplish the same using only "basic" NumPy functions (anything here is OK: https://numba.pydata.org/numba-doc/dev/reference/numpysupported.html). Unfortunately the s_ object is not supported.
How can I accomplish this? Its OK if I need to make more than one call or tmp arrays.