Calculate maximum of a whole column in a jit.matrix

Jul 21, 2013 at 9:09am

Calculate maximum of a whole column in a jit.matrix

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

#256646
Jul 21, 2013 at 10:33am

jit.submatrix –> jit.3m ?

#256656
Jul 21, 2013 at 10:40am

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

– Pasted Max Patch, click to expand. –

</code>

#256658
Jul 21, 2013 at 12:54pm

Thanks much, exactly what I was looking for !

#256660
Jul 21, 2013 at 1:40pm

also check jit.dimop:

<code>

– Pasted Max Patch, click to expand. –

</code>

#256665
Jul 21, 2013 at 1:59pm

Even better, thanks !

#256668
Jul 21, 2013 at 2:59pm

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

#256672
Jul 21, 2013 at 5:32pm

Yes, thanks for pointing that out, Joshua.

#256680

You must be logged in to reply to this topic.