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

Home » Public Forums » archive » setintersection assumes sets have no repetitions?
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: setintersection assumes sets have no repetitions? [message #83643 is a reply to message #83455] Thu, 14 March 2013 13:29 Go to previous message
bobgstockwell is currently offline  bobgstockwell
Messages: 3
Registered: March 2013
Junior Member
On Tuesday, March 5, 2013 12:00:54 PM UTC-7, David Fanning wrote:
> Paulo Penteado writes:
>
>
>
>> I just noticed that the documentation changed, to say that indices_a
>
>> and indices_b require the intersection elements to be unique, while
>
>> positions does not.
>
>
>
> I'm still waiting for Bob Stockwell to get back to me. It's his code. I
>
> just change the stuff I understand. ;-)
>
>
>
> Cheers,
>
>
>
> David


Hi Everyone,

sorry, even as someone who programs in IDL daily for the past few decades, I don't read this newsgroup very much.

Paulo, yes that is expected behaviour as the routine is written. It is defined to return both reverse index arrays of unique identifiers. I can extend that to repeated elements in the 'b' array easily enough, but the problem withrepeated matches in both is that you (potentially) have more matches than array elements and certainly would have different numbers of matches for each element which would require a ptr array for the results.

In fact, that calculation shouldn't even be executed unless the user requests it.

I'll take a look at the code and see what modification would seem reasonable. And an example would probably be nice to add as well.

cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: help with transparent plot in version 8.2.2
Next Topic: Findind NANs in unformatted image data

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

Current Time: Fri Oct 10 16:51:23 PDT 2025

Total time taken to generate the page: 0.64221 seconds