Jitter Matrix Remap ZigZag
Hi
I’m looking for some pointers on how to effectively remap the location of cells from one Jitter matrix into another matrix.
The remap involves mapping 2 columns in a 'zig zag' fashion from the first matrix into single rows in the second matrix (see attached image - this shows the example pattern in the first two columns).
I am already able to do this using a range of list processing functions, such as jit.iter, but for reasons of scaling up the size of matrix have found the performance not acceptable. In short, ideally I’d like to be able to do this without using list data.
To me it seems like a simple problem, but I’m stuck. Any suggestions would be really appreciated - including how to do it in jit.gen or jit.pix.
Thanks
Christian

Hi Christian
Here an example with jit.pix ...
Maybe jit.repos could be useful too
mathieu
Hi Mathieu
Thanks so much for that. Aside from giving me a huge head start, it also explains some of the fundamental ideas around jit.pix.
Really appreciated!
Christian
Another option with [jit.multiplex] and [jit.transpose]:
[jit.pix] is more efficient, by the way. Still, there is something nice in the multiplex/tranpose patch !
Hi Jean-Francios
Thanks for this. I was initially trying to use jit.dimmap and jit.transpose to do the same thing but obviously could not get the column splitting or iteration to work. The use of jit.multiplex and jit.demultiplex is an intelligent solution.
Appreciated,
Christian