@Stéfan: the 'np.all' calls are now unnecessary on line 26

@Stéfan, Robert: Is it worth to bring this solution into numpy? I mean
it's probably not a rare problem, and now users have to bring this
snippet into their codebase.

Gregorio

2013/9/3 Stéfan van der Walt <ste...@sun.ac.za>:
> On Tue, Sep 3, 2013 at 2:47 PM, Robert Kern <robert.k...@gmail.com> wrote:
>>> Here's one way of doing it: https://gist.github.com/stefanv/6413742
>>
>> You can probably reduce the amount of work by only comparing a.min() and
>> a.max() instead of the whole array.
>
> Thanks, fixed.
>
> Stéfan
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to