05-09-2016 11:19 PM
Hi,
I have a 2D array
Let's say
1 2 3 4
2 0 0 0
9 5 6 8
4 0 0 0
and I want to split it into 2 pages
Page 1
1 2 3 4
2 0 0 0
Page 2
9 5 6 8
4 0 0 0
Number of rows and coloumns can be any number and the plit value also can be 2 , 4 or any number
Please help me to implement this
05-09-2016 11:25 PM
Hope this will help you
05-10-2016 01:03 AM - edited 05-10-2016 01:05 AM
Since the elements remain in memory order, I would just use a plain reshape operation. (One step. No need to chop and reassemble)
(assumes that things are evenly divisible. If not, you might need to do some padding and such)