Forums > Jitter

jit.submatrix

June 17, 2010 | 5:30 pm

I wanted to use jit.submatrix to extract a row out of a matrix. When I look closer to the object, it seems that it only extracts the first row or column. What can I do or use, if I want to extract different columns?
Let’s say I have a matrix of 16 12 and I want the 6 4 extracted. How do I do that?


June 17, 2010 | 6:04 pm

Use the offset message, so if you want the 3rd column

jit.submatrix @dim 1 12 @offset 3 0


June 18, 2010 | 2:32 pm

Thanks. It is @offset 2 0 for the third column. I think it counts from 0. Is that so?


June 21, 2010 | 8:43 am

Quite right, just testing ;)


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