[jit.gen] compare & retrieve cell

Aug 3, 2012 at 4:03pm

[jit.gen] compare & retrieve cell

Hi all,

Need somebody to tell me if it’s possible;

i want to retrieve at each instant in [jit.gen] the index of the cell where [ in1.y ] is the smallest value in comparison with other in [in1.y]
knowing that the values ‚Äč‚Äčare different and change….

attached patch :

– Pasted Max Patch, click to expand. –
Aug 4, 2012 at 6:17pm

Do you mean, you’re looking for the cell where in1.y is the smallest in.y in the entire matrix? If so, you can do this easily with jit.3m and jit.op. jit.gen isn’t going to give you any advantages for this problem. You can use jit.3m to get the min value for the y value and then use jit.op @op < = to mark the cell with that value.

Aug 4, 2012 at 8:12pm

Thank you for your answer Wesley,

you understand what I meant and I wanted to know if this was possible using [jit.gen].

Aug 4, 2012 at 8:52pm

You can use jit.gen, but you’ll want to use jit.3m as well. It’s the most efficient way to figure out what the smallest value in the entire matrix is going to be.

Aug 30, 2012 at 4:17pm

could you please detail the jit.op marking process to finally have the cell coordinates ?

Aug 30, 2012 at 4:43pm

oops. no prob. I had another artifact that glitched my stuff.
this is pretty obvious with jit.findbounds

here is the thing for people for whom it isn’t.

– Pasted Max Patch, click to expand. –


  1. cellMarking.PNG

You must be logged in to reply to this topic.