I see. So here the special code is implemented?

   1e2 timespacex 'a=: c}a,:d=: a%b [ c=: 0 ~: b=: ?1e6#5 [ a=: ?1e6#5'
0.103524 6.71141e7

If I take the random generators out of the timer, then it is
slightly faster and less space-hungry than the my previous
expression:

   a=: ?1e6#5
   b=: ?1e6#5
   1e2 timespacex 'a=: c}a,:d=: a%b [ c=: 0 ~: b'
0.0409632 5.03352e7

Best regards,
Louis

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to