making long, thin matrix

Jan 17, 2006 at 5:19am

making long, thin matrix

Maybe I’m overlooking something really simple here…….

Say I want to take the values in a 40 x 30 matrix and re-order them into a matrix that is 1200 x 1 in size. Is there an object or object combo that will do this for me?

I’m dynamically changing the size of the matrix, which makes the huge-glob-of-glue-scissors-objects approach difficult.

Also, the matrix contains float32 values. In 2 dimensions.

I was trying this approach:

jit.iter or jit.spill into list

then fill new matrix using jit.fill

but getting lots of crashes. Also feels a little inefficient.

Is there a nice neat way to do this? I’ll bet there is…..

Thanks very much……

Jan 17, 2006 at 6:22am

you want jit.scanwrap


Jan 17, 2006 at 7:34am

Works a treat. thanks for that. should have seen it.


You must be logged in to reply to this topic.