That is an interesting suggstion and I will investigate.
My conclusions are (1) a small c program will need to be written to do
what's needed and (2) learning how to program the sm has nevertheless
been worthwhile - it's a magical jewel in the j toolbox.
Thankyou very much for your efforts
David


> Raul Miller wrote: <Wed Jan 24 00:23:36 HKT 2007>
Perhaps this is useful?

sm2=:(2;(2 2 2$1 1 1 1 1 0 1 2);a.e.'+:')&;:
cutsm=: 4{."2 0:>. 1 _1+"1 (_1 +/\@(|.!.0) #;.1) + sm2;.1

  'cut"1 data' %&(6!:2) 'cutsm"1 data'
3.60396

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

Reply via email to