How to reorder/reshape N-D matrix in zigzag manner?

370 Views Asked by At

I would like to sort cells of tensor in this way

enter image description here

Note, that each cell is not a single value, but a stack of values (DCT components). So, the dimensions of original tensor is not 2D.

0

There are 0 best solutions below