Remove masked elements from an array
holger krekel
pyth at devel.trillke.net
Mon Apr 29 20:36:47 EDT 2002
On Mon, Apr 29, 2002 at 06:09:55PM -0600, Fernando P?rez wrote:
> 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).
Yes, this is the probably the best solution. I have never used Numeric
but it seems to be a very useful module.
Though it cant hurt to get to know basic techniques :-)
holger
More information about the Python-list
mailing list