Easy Question: Re-ordering jitter matrix dimensions

Sam Tarakajian's icon

Hey guys,

Easy (hopefully) question here: how can I reorder/coerce the dimensions of a Jitter matrix? For example, if I've got a 6 by 6 by 6 matrix, how can I get that expressed as a 6 by 36 matrix? I think it could be done with scissors and glue but it wouldn't scale up to matrices larger than a very small size.

dtr's icon

One way is with a combination of jit.unpack and jit.matrix with @usedstdim 1 and matching @dstdimstart and @dstdimend coordinates. Don't forget to use @adapt 0 too.

Gregory Taylor's icon

jit.coerce? Perhaps I am not fully understanding your question....

Sam Tarakajian's icon

Hey Sam from three years ago. Believe it or not, the answer is jit.scanwrap. Seriously.