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
setintersection assumes sets have no repetitions? [message #83312] Sat, 23 February 2013 12:46 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
I am using Coyote's set functions, and I noticed that when I use some
(not any) sets with repetitions as input, it crashes:

IDL>
a=[1,2,3,4,5]
IDL>
b=[1,2,2,2]
IDL>
print,setintersection(a,b,indices_a=ia,indices_b=ib,position s=pos)
% Compiled module: SETINTERSECTION.
% Compiled module: REVERSEINDICES.
% Compiled module: ERROR_MESSAGE.

Traceback Report from SETINTERSECTION:

% Out of range subscript encountered: BINDICES.
% Execution halted at: SETINTERSECTION 192 /software/idl/
others/idl-coyote-read-only/coyote/setintersection.pro
% $MAIN$
-1

Is this the expected behavior? Are the input sets supposed not to have
repetitions? The documentation suggests they may have repeated
elements, thus making the positions array different from indices_a.
[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 09:26:54 PDT 2025

Total time taken to generate the page: 1.20053 seconds