I confirm this: m -. n and m&-. n and even n&(-.~) m are about 5x faster than -.&n m .

I can't imagine a reason why; I suppose I would need to look at the source code to see.

Henry Rich

On 10/13/2013 12:52 PM, Brian Schott wrote:
    10 ts 'm -. n'
0.0899539 5.24346e6
    g=:m&-.
    10 ts 'g n'
0.0908445 5.24365e6


Is the above relevant? Used iPad, pre OS7.
---
(B=)

On Oct 13, 2013, at 12:07 AM, Ganesh Rapolu <unomer...@gmail.com> wrote:

   m =. 1e6 ?@$ 1e6
   n =. 50000 ?@$ 1e6
   f  =. -.&n
   10 ts 'm -. n'
0.0261088 9.43834e6
   10 ts 'f m'
0.115288 8.39014e6
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to