I need help understanding how to iterate values in a fixed array. I don't know if there is a function in numpy
that does it for you. To better understand my question, here is an example. I have a fixed array of 10.
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[9, 1, 0, 0, 0, 0, 0, 0, 0, 0]
[42, 9, 1, 0, 0, 0, 0, 0, 0, 0]
.
.
.
[37, 15, 20, 60, 39, 10, 5, 3, 42, 9]
Once I hit index 10
, the first value 1
disappears from the array.
Can someone tell me the proper name for this technique and if there is a built-in function?