From a 1d array, I want two arrays of indexes:
the first for elements that satisfy a criterion,
and the second for elements that do not.  Naturally
there are many ways to do this.  Is there a preferred way?

As a simple example, suppose for array `a` I want
np.flatnonzero(a>0) and np.flatnonzero(a<=0).
Can I get them both in one go?

Thanks,
Alan Isaac
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to