[Numpy-discussion] Boolean indexing

Sturla Molden sturla@molden...
Tue Mar 8 08:29:07 CST 2011

Den 08.03.2011 14:59, skrev Sam Tygier:
> I think the boolean slicing is making a copy instead of a view.


> is there
> a way around this?

A "boolean slice" cannot be indexed with the dot product of dimensions 
and strides, hence the copy.

You probably want to use masked arrays instead.


More information about the NumPy-Discussion mailing list