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

Home » Public Forums » archive » Re: Array element deletion
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 element deletion [message #36380] Sat, 13 September 2003 10:05 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Edd Edmondson wrote:

> Supposing I have a big array and I also have an array containing indices
> of unwanted elements. Is there a neat way of removing those elements from
> the array?
>
> Attempts using WHERE() have failed for me* and currently I'm looping
> through the array of indices and deleting them one at a time - which is
> fine when I've only got 20 or 30 of them but I doubt it'll scale well.
>
>
> * - I tried to make a list of indices that I wanted to keep using
> WHERE(indgen(x) ne unwanted) but that only produces the first
> n_elements(unwanted) of the correct indices.
>

Just in addition to Davids answer.

a_not_b
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/a_not_b_dbase.pro.html

regards
Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Contour overlay
Next Topic: Re: Floating Point Slider Widgets

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

Current Time: Wed Oct 08 18:55:34 PDT 2025

Total time taken to generate the page: 0.00402 seconds