Convert a 1-D Matrix to a 2-D Matrix

Apr 10, 2012 at 9:43am

Convert a 1-D Matrix to a 2-D Matrix

I’m trying to record a particle matrix (jit.p.shiva) with jit.qt.record.

I’ve succesfully converted the 5-plane float32 matrix to a 4-plane char matrix.
But jit.qt.record seems to be limited to a dimension size of 3792 – and I’ve got 200400.

So, how can I convert a one-dimensional matrix to a two-dimensional matrix?
I’ve looked at jit.scissors jit.split and jit.multiplex but can’t figure out how to do it.

thx in advance,

Apr 10, 2012 at 11:46am

not sure if will work for your need, but for dimensional matrix changes theres jit.scanwrap

Apr 13, 2012 at 10:18am

Thanks Carsol!

jit.scanwrap is exactly what I needed.
It also works for converting 2d back to 1d.


You must be logged in to reply to this topic.