Thank you all for the suggestions and alternate implementations. I ran
benchmarks on them all and wanted to share:
$ t2
1763140 3
NB. Thomas's suggestion
groups1 =: 3 : 0
]key=. (}."1 wrote:
> Joe
>
> If the only thing that matters is the car and cdr of each entry why
> not just raze the cdr, eg
pd 'reset'
pd 'type marker'
pd 'color red'
pd j./"1 ,:7.87302 2.63376e8
pd 'color green'
pd j./"1 ,:2.74571 3.24026e8
pd 'color blue'
pd j./"1 [6.53307 2.23953e8 ,: 2.46257 2.33259e8
pd 'color black'
pd j./"1 ,:11.5519 5.73956e8
pd 'show'
2 <-> red
3 <->
Thanks for letting us know, Joe.
You might see a big improvement with unboxed symbols taken just before
comparisons as in:
(~.{."1 t) ({."1
To: [email protected]
Cc:
Sent: Sunday, July 27, 2014 9:18:31 AM
Subject: Re: [Jprogramming] finding matching sets
Thank you all for the suggesti
Joe
>What i meant by "just not box them separately in the first place" was, eg,
ax=:{. ; }.
fsp=:' ' i.~ ]
tc =: (ax~fsp) ;._2 (0 : 0)
c1 p1 0.2
c1 p2 0.35
c2 p1 0.2
c2 p2 0.35
c3 p1 0.2
c3 p2 0.35
c3 p3 0.45
)
Then you would run tc through REB's fine finder.
greg
~krsnadas.org
--
fr
I also had noticed the change in representation of NA from __ to _. and removed
it from the test script. But I have no idea if this is affecting the Rserve
script itself nor how to modify it if so. And my code worked fine two weeks
ago, while the new representation of NA has been around for year
I don't see any recent changes in Rserve.
Can you give us a simple, reproducible example?
Try to isolate the problem to a few lines of J entered in a fresh session.
On Sun, Jul 27, 2014 at 3:40 PM, wrote:
> I also had noticed the change in representation of NA from __ to _. and
> removed it f
The r addon for j602 should has not changed since Feb 2013.
On Jul 27, 2014 12:40 PM, wrote:
> I also had noticed the change in representation of NA from __ to _. and
> removed it from the test script. But I have no idea if this is affecting
> the Rserve script itself nor how to modify it if so.