I have the following problem: I would like to find different "cuts" of the array into two different arrays by adding one element each time, for example:
If I have an array
a = [0,1,2,3]
The following splits are desired:
[0] [1,2,3]
[0,1] [2,3]
[0,1,2] [3]
In the past I had easier tasks so np.split()
function was quite enough for me. How should I act in this particular case?
Many thanks in advance and apologies if this question was asked before.