Hi Roger,
Nice little speedup. Roughly 16 times faster when starting with my 7619 by 14 numeric matrix!

6!:2 'hh=:cm &": each h' 0.877071

and around 14+ seconds for the alternative.


Thanks again for all the help,
Dave

Roger Hui wrote:
Oops.  I did the benchmark in J6.02 which has special code
for that expression.  The same expression in J6.01 (timings
in J5.04 would be similar).  Not as fast but still fast enough.

   cm=: ('_',a.)&i. { ('-',a.)"_
   x=: 1e6 $ '_1.234e_45 '
   6!:2 'cm x'
0.0319035

----------------------------------------------------------------------
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