numpy argsort

0 views
Skip to first unread message

Manish Jain

unread,
Aug 2, 2016, 8:33:00 AM8/2/16
to Numba Public Discussion - Public
I am new user who is trying to port some numpy code the numba.

My code needs argsort from numpy. I did not see argsort as one of the supported functions. Are there any plans to add this in the near future?

Alternatively, I can implement argsort in python and jit it... 

Manish

Antoine Pitrou

unread,
Aug 4, 2016, 11:38:21 AM8/4/16
to numba...@continuum.io

Hi Manish,

On Tue, 2 Aug 2016 05:33:00 -0700 (PDT)
Manish Jain <mjain...@gmail.com> wrote:
> I am new user who is trying to port some numpy code the numba.
>
> My code needs argsort from numpy. I did not see argsort as one of the
> supported functions. Are there any plans to add this in the near future?

Indeed, we don't support argsort() currently. We will probably add it
at some point, though we have no idea when.

> Alternatively, I can implement argsort in python and jit it...

Yes, that is another possibility. You can take a look at our sort()
implementation here:
https://github.com/numba/numba/blob/master/numba/targets/quicksort.py

Regards

Antoine.


Manish Jain

unread,
Aug 4, 2016, 11:54:51 AM8/4/16
to Numba Public Discussion - Public, soli...@pitrou.net
Thanks Antoine.

Manish
Reply all
Reply to author
Forward
0 new messages