I am currently looking for a way to use something similar to np.arange, but with the option of doubling the step size.
I know that np.arangecreates evenly spaced arrays and is not supposed to support variable step sizes.
What I want as an output is something similar to np.array([0,1,3,7,15,31,...]).
Is there any built-in function that does this?
I have to use this very often and therefore would prefer to avoid for-loops or similar slow approaches.