jit.gen & output & input formats confusing me totally :-(

Julien Bayle's icon

Hi there,

I need to enter a 4-uplets in a jit.gen in order to make a calculation.
til here, no problem.

I'm splitting the uplet into 4 floats components with swiz... til cute...
Then, I'm making my calculation, all ok.

problems appear when I'm trying to "build" my output.
I need to pop out 9 floats.

Here is my patch attached.

Because I'm building 3 vectors and popping them out the jit.gen, I'm using glue to .. glue them to make a resulting matrix 3x3, which is here the rotation matrix I need to produce my azimuth calculation.

Please where is the problem?
I tried to tweak the jit.gen attributes, to make it not adapting, 1 1 as dimension & 3 planes... all the same... the resulting matrix from glue is 0. 0. 0 0. 0. ....

4075.jit.genOutputInput.PNG
PNG
Julien Bayle's icon

here is another variant
seems better

jit.gen is 4 plane not adapting in order to provide the process of the 4 plane stuff coming into it.
and thus, it pops out vectors with 4 components EVEN if I'm still using (vec 0. 0. 0. ) object before output.

the fourh component is 0.0000

I can probably remove it with scissors..
but it would be smarter to avoid to have it.

how would you advise to me ?

4076.variante.PNG
PNG