impossible to use >p operator in jit.expr?

May 28, 2006 at 7:43pm

impossible to use >p operator in jit.expr?

#26202
May 28, 2006 at 8:58pm

A workaround is obvious : expr “in[0]*(in[0]>0.3)”, for example. Anyway, the
question remains.

#77941
May 28, 2006 at 10:50pm

hello,

i can confirm >p jit.expr behavior on xp/pc (before those shiny new macs i
thought its enough to say ‘xp’)

if i understood the problem correctly,
one workaround could be:

jit.expr @expr “(norm[0] > 0.3)*norm[0]“

or

jit.expr @expr “(norm[0] > 0.3)*in[0]“

best,
nesa

#77942
May 29, 2006 at 5:19am

The “>p” infix operator doesn’t work with the jit.expr parser.
However the prefix gtp(x,y) “greater than pass” should work (haven’t
verified, but programmed it to work that way). Similar for other
logical pass operators.

Let us know your findings.

Thanks,
Joshua

#77943
May 29, 2006 at 1:46pm

#77944

You must be logged in to reply to this topic.