[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
- Previous message (by thread): [Numpy-discussion] Failure to install
- Next message (by thread): [Numpy-discussion] 采购成本管理与双赢谈判技巧
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message (by thread): [Numpy-discussion] Failure to install
- Next message (by thread): [Numpy-discussion] 采购成本管理与双赢谈判技巧
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]