I've got a 1D array containing a large number of values, and I'd like to transform it to a 2D array where each sequence of 12 values is put in a row, so the size of the 2D array would be:
number of rows = number of values/12
number of columns = 12
I currently make this operation with a for loop, but it takes time for arrays containing large amount of data.
Someone would have an idea to optimize it?