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

Home » Public Forums » archive » Re: The intersection of 2 arrays - where_ar.pro [1/1]
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: The intersection of 2 arrays - where_ar.pro [1/1] [message #8435] Tue, 04 March 1997 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
David P. Steele wrote:
>
> The attached routine (WHERE_ARRAY.PRO) was posted a few years back on this
> newsgroup, courtesy of Stephen Strebel. It uses a vector algorithm, and does
> what I think Phil wants to do.

Just make sure you don't try and use it with big arrays -- it's an n^2 algorithm
(versus the n algorithms posted prior). E.g., to compare two floating 128x128
arrays for overlapping values, the program would create 3 arrays, each of which
takes 1 GB! The routine match() is likely much more efficient for doing
intersections on big arrays. (Unless you have some serious RAM on your machine).

JD
[Message index]
 
Read Message
Read Message
Previous Topic: how to revert to 8-bit color?
Next Topic: Re: IDL and Vector Product Format (VPF) Files

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

Current Time: Wed Oct 08 18:11:07 PDT 2025

Total time taken to generate the page: 0.00643 seconds