I'm building a patch in which I need to compute the distance between a tracked object and several fixed objects, so I thought that using a matrix and jit.gen to perform operations could be the most efficient way to make it.
Here's what I got so far:
The patch is working pretty well. What I need to implement now is formatting the jit.gen output this way: "".
I think I can achieve this using jit.iter and a counter prepending the object's number, but I wonder if there is a way inside jit.gen to do that: since every distance value lies on a different row of the matrix, is there some way (swiz?) to get the jit.gen object to output something like: ", , etc."?