Forums > MaxMSP

Calculate maximum of a whole column in a jit.matrix

July 21, 2013 | 9:09 am

Hello,
I’m trying to do something quite simple but cannot find an efficient and fast calculating way of doing it.
I have a jit.matrix, 1 plane, dimension 96*96.
I want to get the maximum of the values contained in each column of the matrix, to get either a list of 96 numbers, or a 1 plane, 96*1 jit.matrix.
I am pretty sure jit.expr might help but cannot figure out how. Iterating with jit.spill is way too heavy for my needs.
Any idea ?
Thx


July 21, 2013 | 10:33 am

jit.submatrix –> jit.3m ?


July 21, 2013 | 10:40 am

Yeh, what Rob said. Here’s an example.
<code>

– Pasted Max Patch, click to expand. –

</code>


July 21, 2013 | 12:54 pm

Thanks much, exactly what I was looking for !


July 21, 2013 | 1:40 pm

also check jit.dimop:

<code>

– Pasted Max Patch, click to expand. –

</code>


July 21, 2013 | 1:59 pm

Even better, thanks !


July 21, 2013 | 2:59 pm

wow, I spent so much time looking for that object, talk about a wallflower!


July 21, 2013 | 5:32 pm

Yes, thanks for pointing that out, Joshua.


Viewing 8 posts - 1 through 8 (of 8 total)