Index of maximum value in a jitter matrix

skrasms's icon

Is there a simple object that will output the coordinate of the maximum value in a matrix? jit.3m tells me what the maximum value is, but not where it happens. I imagine I can build a patch to do it, but it seems like a task that would have a dedicated object. Am I missing something?

skrasms's icon

This is what I'm using right now. It gets the job done, but I would really like to avoid using jit.iter.

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

Dg's icon

Hello,

I don't know if it is possible without [jit.iter] nor if there is any dedicated object for that, probably senior members could tell us.
For the moment I do that this way (see below)
It gives you the cell which has the bigger value.

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

Zachary Seldess's icon

Hi skrasms and Kyred,

Wesley's great 3rd party object, xray.jit.cellcoords, will help you keep this stuff in Jitter-land.

best,
Zachary

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