I am afraid not.

   y=: 1e3 [EMAIL PROTECTED] 900
   6!:2 '(~.y) i. y'
5.50349e_5
   6!:2 ',I.|:=y'
0.00924894

   y=: 1e4 [EMAIL PROTECTED] 900
   6!:2 '(~.y) i. y'
0.000147784
   6!:2 ',I.|:=y'
0.186556

In general the monad = is inherently inefficient 
in space and time.



----- Original Message -----
From: Brian Schott <[EMAIL PROTECTED]>
Date: Thursday, May 24, 2007 8:31 pm
Subject: Re: [Jprogramming] index in nub

> ,I.|:=y
> 
> On Thu, 24 May 2007, Roger Hui wrote:
> 
> + (~.y)i.y   finds the indices of y in the nub of y .
> + Can you do it faster?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to