On Nov 8, 2007 5:35 PM,  <[EMAIL PROTECTED]> wrote:
> Anyhow, by using:
>    1000 (6!:2) '(?256$0)+/ . *?256 312$0'
> 0.0052153
...
> The j version runs about a factor of 10 slower than the
> matlab version, but at least my earlier timing dropped from
> 2.5 minutes to about 5 seconds.

It's also doing something very different.

Try
  A=: ?256$0
  B=: ?256 312$0
  1000 (6!:2) 'A +/ .* B'

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

Reply via email to