[Numpy-discussion] Efficient array equivalent to cmp(x,y)

Kim Hansen slaunger at gmail.com
Thu Sep 17 16:30:40 EDT 2009


>
>
>
> If there are no NaNs, you only need to make 2 masks by using ones
> instead of empty. Not elegent but a little faster.
>

Good point! Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090917/e57f0bd0/attachment.html>


More information about the NumPy-Discussion mailing list