[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 :
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
Thank you for your answer Wesley,
you understand what I meant and I wanted to know if this was possible using [jit.gen].
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.
could you please detail the jit.op marking process to finally have the cell coordinates ?