compare it with width 5000:
GTE=: a. {~ >. & (a. i. ])
char1=: a. {~ num1=: [EMAIL PROTECTED]
char2=: a. {~ num2=: [EMAIL PROTECTED]
width=: 13 : '((>.x%~#y), x)$y'
chunkGTE=: 3 : 0
c2c=. y width char2
c1c=. y width char1
c2c GTE"1 c1c
)
nochunkGTE=: 3 : 0
char2 GTE char1
)
ts 'chunkGTE 5000'
0.0347206 3.27098e6
ts 'nochunkGTE 0'
0.0645314 1.2585e7
2008/4/6, June Kim <[EMAIL PROTECTED]>:
> Maybe you could kill two birds with one stone?
>
> width=: 13 : '((>.x%~#y), x)$y'
>
> chunkGTE=: 3 : 0
> c2c=: y width char2
> c1c=: y width char1
> c2c GTE"1 c1c
> )
> nochunkGTE=: 3 : 0
> char2 GTE char1
> )
>
> ts 'chunkGTE 10000'
> 0.0509914 1.2967e6
> ts 'nochunkGTE 0'
> 0.0646672 1.2585e7
>
>
> 2008/4/6, Raul Miller <[EMAIL PROTECTED]>:
> > On Sun, Apr 6, 2008 at 4:41 AM, david alis <[EMAIL PROTECTED]> wrote:
> > > GTE =: a. {~ >. & (a. i. ])
> > ...
> > > Is there an alternative, or is there a form of the expression that
> > > would use special code?
> >
> > You can trade space for time, using GTE"0
> >
> > --
> > Raul
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm