[Numpy-discussion] 100 Numpy exercices

Jaime Fernández del Río jaime.frio at gmail.com
Tue May 27 15:48:40 EDT 2014


On Tue, May 27, 2014 at 12:27 PM, Nicolas Rougier
<Nicolas.Rougier at inria.fr>wrote:

> Any other tricky stride_trick tricks ? I promised to put them in the
> master section.
>
>
It doesn't use stride_tricks, and seberg doesn't quite like it, but this
made the rounds in StackOverflow a couple of years ago:

http://stackoverflow.com/questions/16970982/find-unique-rows-in-numpy-array/16973510#16973510

It may not work properly on floats, but I think it is a very cool use of
dtypes. Then again I'm obviously biased...

Jaime

-- 
(\__/)
( O.o)
( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes
de dominación mundial.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140527/d41634a4/attachment.html>


More information about the NumPy-Discussion mailing list