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.