[Numpy-discussion] selecting part of an array like a[ a<5 ]

Keith Goodman kwgoodman at gmail.com
Mon Aug 20 09:19:34 EDT 2007


On 8/20/07, mark <markbak at gmail.com> wrote:

> b = a>5
>
> a[not b] or a[!b] don't work. So it's gotta be something different.

a[~b]



More information about the NumPy-Discussion mailing list