I've implemented a recursive function which takes as parameter a numpy array. Here the simplified version:
def rec(arr):
rec(arr[indices])
In every recursive call I use a part of the array indexed by some indices.
My question is about the memory load: how does python handle this? Does it makes a copy of the array at each call or not?
arrthat are alive at the same time. With iteration, this may or may not be the case. But I agree that this question appears to be entirely about the memory use ofarr[indices]and not about recursion per se.