comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: fast array comparison
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: fast array comparison [message #33156 is a reply to message #33152] Sun, 08 December 2002 17:39 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Sean Raffuse" <sean@me.wustl.edu> writes:
> David,
>
> Thanks for this. It works almost perfectly. I am a little confused though.
> It seems that the indices keyword returns the indices of the requested array
> and not the available array.

Greetings Sean--

Another option is CMSET_OP from my web page. It uses the HISTOGRAM
technique, if the dynamic range of values is small, but graduates to a
different, sort/uniq-based method, if the dynamic range is large.
Indices can be returned using the /INDEX keyword. [ In case it isn't
obvious, you want to use the 'AND' operation. ]

CMSET_OP also returns indices from the *first* array. This is not a
problem for your application, since you can simply swap the positions
of the first and second arrays in the function call.

Yours,
Craig

http://cow.physics.wisc.edu/~craigm/idl/idl.html (under Array/Set Ops)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: calling C from IDL under OS X
Next Topic: 3D Scatterplots

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:51:40 PDT 2025

Total time taken to generate the page: 0.00396 seconds