Remove masked elements from an array

Fernando Pérez fperez528 at yahoo.com
Mon Apr 29 20:09:55 EDT 2002


James J. Besemer wrote:

> holger krekel wrote:
> 
>> there are too solutions. choose yourself :-)
> 
> THREE if you include LAMBDA.
> 

No, please heed other advice and use the MA approach. Please note that I'm not 
dissing this post on its own merits, it's a nice discussion, it just is 
ill-adapted to numeric processing. Numeric provides its own _fast_ way to 
manipulate arrays with invalid data, by all means use it. After all, speed is 
one of the big reasons why you use Numeric to begin with (you could do most 
things in it with regular lists, if you had the age of the universe to wait).

cheers,

f



More information about the Python-list mailing list