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

Keith Goodman kwgoodman@gmail....
Mon Aug 20 08:19:34 CDT 2007


On 8/20/07, mark <markbak@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