non sequential matrix processing bassed on condition?

Oct 25, 2011 at 12:04pm

non sequential matrix processing bassed on condition?


It is possible to processe selectively the content of a matrix based on a condition without scanning it with “uzi” like objects?

I want to do something like this:

“if the value stored on a particular x-y at plane 0 is equal to something, then perform an operation over the value stored in the same x-y at plane 1″.


Oct 25, 2011 at 1:09pm

You can access individual cells of a matrix with ‘getcell’ and ‘setcell’.

For details of message format see help/reference page.

Oct 25, 2011 at 1:42pm

Example using jit.expr

– Pasted Max Patch, click to expand. –
Oct 25, 2011 at 3:54pm

@broc: may be I’m wrong, but as far as I know, getcell and setcell works on a single x-y position on the matrix, and I need to process all x-y positions on a single operation, please let me know if I’m wrong.

@David Butler: that is exactly what I’m talking, thanks!


You must be logged in to reply to this topic.