Forums > Jitter

bug in jit.expr ?

May 24, 2011 | 11:39 am

hi maxers,

i’m facing a strange behavior with jit.expr. the first time i trigger an operation after setting the expr, the result is not correct. the second time it’s ok. see the example in my patch. maybe i’m doing something wrong…

g

– Pasted Max Patch, click to expand. –

May 24, 2011 | 8:11 pm

This is because the jit.expr starts out as a 1×1, 4 plane char matrix. You will either want to set these attrs in the jit.expr object (@adapt 0 @type float32) or initialize it with another matrix, jit.matrix 1 float32.

If this is going to change, you might want to use jit.matrixinfo to set the jit.expr before the calculation.

– Pasted Max Patch, click to expand. –

May 24, 2011 | 8:31 pm

thanks !


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