[Numpy-discussion] unique1d returning indices
Robert Cimrman
cimrman3 at ntc.zcu.cz
Mon Aug 11 05:40:42 EDT 2008
Hi Stéfan,
Stéfan van der Walt wrote:
> Hi Robert
>
> 2008/8/6 Robert Cimrman <cimrman3 at ntc.zcu.cz>:
>> Note also that the order of outputs has changed (previously unique1d()
>> returned (i, b) for return_index=True).
>
> Does this not constitute an API change?
It does. Are there many users of unique1d( a, return_index=True ) out there?
The new way is consistent with matlab, and IMHO more logical - the
additional return values are appended to the returned tuple rather than
prepended. It was my mistake to introduce the previous order (do not
recall the motivation anymore :]).
r.
More information about the NumPy-Discussion
mailing list