setrow, getrow, getcolumn, setcolumn

julienrobert's icon

Hello

I'd like to control my data in a jit.matrix by column or row. Is there an easy and efficient way to do it instead of using the combination of uzi and setcell 0 0 val $1 ?

cheers

Roald Baudoux's icon

Well, jit.fill is OK to fill a row.

But I'd like to know how to fill a column in one go...

C74 could have a look at IRCAM's FTM possibilities for operations on matrixes. Some of them would find their place in Jitter (and conversely).

Cheers

Roald Baudoux's icon

Jit.expr is our friend...

Max Patch
Copy patch and select New From Clipboard in Max.

Here we go:

Gary Lee Nelson's icon

the patch above crashes max 6.1.6

I would also like to know how to send a message to a jit.matrix to get a particular column of an image.

Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

the patch above works fine on my system with max 6.1.7, but a simple way to get columns would be to use jit.submatrix with dim 1 y:

Hugh S's icon

Thank you Tobias. Perfect for me.

Gary Lee Nelson's icon

Are there objects available that do this?

Max Gardener's icon

No. Submatrices are how it's done.