Home »
Public Forums »
archive »
Re: intersection of 2 arrays
Re: intersection of 2 arrays [message #19651 is a reply to message #19647] |
Mon, 10 April 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Dave Marshall (dmarshall@ivory.trentu.ca) writes:
> I never seem to have the problem at the time when it is being discussed
> here since I remember something about this in the past.
>
> I have 2 arrays and would like a 3rd that contains the set intersection of
> the 2. Each element in each is unique.
>
> This seems like a basic function but after searching in help, etc. I didn't
> come up with an elegant solution. Maybe its too basic and I should know it?
There is some information about this sort of thing in this
article on my web page:
http://www.dfanning.com/tips/set_operations.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Current Time: Fri Oct 10 14:00:23 PDT 2025
Total time taken to generate the page: 0.64222 seconds