> It should be possible to remove a mask when copying an array.
>

This was a concession on the part of those pushing for masks.  Eventually, I
ended up realizing that it resulted in a stronger design.

Consider the following:

foo(a[4:10])

Should function foo be able to access the rest of array "a", even though it
has a part of it?  Of course not!

Now, if one considers masking as a form of advanced slicing, then it wouldnt
make sense for foo() to be able to access parts it wasn't given.

That being said, this is where NumPy array views come into play.  You can
create a view of the original data, add masks to the view, and still have
access to all of the original data, unmasked.

Ben Root
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to