[Numpy-discussion] unique() should return a sorted array (original) (raw)

David Huard david.huard at gmail.com
Thu Jun 22 12:26:52 EDT 2006


Hi,

Numpy's unique(x) returns an array x with repetitions removed. However, since it returns asarray(dict.keys()), the resulting array is not sorted, worse, the original order may not be conserved. I think that unique() should return a sorted array, like its matlab homonym.

Regards,

David Huard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060622/7fce8491/attachment.html>



More information about the NumPy-Discussion mailing list