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

Home » Public Forums » archive » Re: 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: Array comparison [message #32341 is a reply to message #32334] Wed, 02 October 2002 08:12 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:

>>
>> I believe that the original poster wanted was the values, and not the
>> indices.
>>
>
> That is indeed true. Actually, I'm not interested in anything but whether
> or not an intersection exists. Neither the values nor the indices are
> important.
>
> I am not doing this on very large arrays. However, I may be doing it many,
> many times.

Another way to do set comparisons is with HISTOGRAM. This method is
used within the set_operations.pro file that David Fanning just
mentioned. It is also used by CMSET_OP, if the dynamic range of
values is small. If the dynamic range is large, then there is a
penalty because a huge histogram is created to store a few values.
CMSET_OP chooses dynamically whether to use the HISTOGRAM or
SORT/UNIQ.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Looking for more ideas on code ...
Next Topic: Re: ROI application...

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

Current Time: Fri Oct 10 20:26:35 PDT 2025

Total time taken to generate the page: 6.56721 seconds