Let's imagine I have an array MyArr1(5, 5). Type isn't important. What would be the best way to split this array into a smaller one? For example, I want MyArr2(3, 3) to be the same as MyArr1(1 to 3, 2 to 4).
If it were a one dimensional array, I could just do:
But I don't see how that could work for multi-dimension arrays.
The only way I can think of it to create a loop and populate on a one by one basis. Don't know if there's a better way to do this, but for larger dimension arrays it seems like a very inefficient method.
Any ideas on the best way to tackle this?