jit.submatrix

Jun 17, 2010 at 5:30pm

jit.submatrix

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?

#50939
Jun 17, 2010 at 6:04pm

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

jit.submatrix @dim 1 12 @offset 3 0

#182708
Jun 18, 2010 at 2:32pm

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

#182709
Jun 21, 2010 at 8:43am

Quite right, just testing ;)

#182710

You must be logged in to reply to this topic.