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

Kim Hansen slaunger@gmail....
Thu Sep 17 15:30:40 CDT 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.scipy.org/pipermail/numpy-discussion/attachments/20090917/e57f0bd0/attachment.html 


More information about the NumPy-Discussion mailing list