[Numpy-discussion] Array mapping question
josef.pktd@gmai...
josef.pktd@gmai...
Tue Mar 16 08:42:01 CDT 2010
On Tue, Mar 16, 2010 at 9:33 AM, Jorge Scandaliaris
<jorgesmbox-ml@yahoo.es> wrote:
> <josef.pktd <at> gmail.com> writes:
>
>>
>> If I understand correctly, then you want return_inverse (the original
>> array recoded to using integers 0...len(ctab)-1
>>
>
>> Josef
>
> Right, thanks! I didn't see this cause I use numpy 1.3, where this is
> not available.
If I remember correctly it was unique1d in numpy 1.3 that had the
return_inverse options.
Check the functions in arraysetops for numpy 1.3.
unique1d is in my help file for numpy 1.2 (which was the fastest for
me to look up)
Josef
>
> Jorge
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list