Mar 17 2016 | 11:34 am

Hi folks!

Is there a way to do matrix operation like:

1. Multiply N×M by 1×M matrix (multiply each row value from the 1st matrix by the corresponding value from the second).
2. Calculate mean of each row.

This can be done with jit.spill/jit.fill, but I'm looking for a more FTM- or Matlab-like way on doing this for the whole matrices without doing loops on the scheduler/queue.

I checked the forum briefly and didn't find a solution.
Also I'm new to Gen and don't see a way to do this, because in Gen (as far as I understand) we make the algorithm to be evaluated on each pixel. I don't see a way to do more classical looping techniques there.

Any help is appreciated.

Best,
E.