[Numpy-discussion] Re: ENH: Efficient operations on already sorted arrays

2024-01-16 Thread Peter Schneider-Kamp via NumPy-Discussion
Dear all, I second Yagiz’ proposal. I do, however, see that we need to ensure code style (and probably other forms of) consistency before merging these new functions in. And, particularly important, adherence to the conventions of function and method names. Cheers, Peter From: Yağız Ölmez Da

[Numpy-discussion] Re: NEP 56: array API standard support in the main numpy namespace

2024-01-16 Thread Stephan Hoyer
On Sun, Jan 7, 2024 at 8:08 AM Ralf Gommers wrote: > This NEP will supersede the following NEPs: > > - :ref:`NEP30` (never implemented) > - :ref:`NEP31` (never implemented) > - :ref:`NEP37` (never implemented; the ``__array_module__`` idea is > basically > the same as ``__array_namespace__``) >

[Numpy-discussion] Feature request: Extension of the np.argsort Function - Returning Positional Information for Data

2024-01-16 Thread hao chen
When dealing with lists that contain duplicate data, np.argsort fails to return index values that correspond to the actual sorting positions of the data, as it does when handling arrays without duplicates. Dear Author: When I use the np.argsort function on an array without duplicate data, the ret

[Numpy-discussion] Re: Feature request: Extension of the np.argsort Function - Returning Positional Information for Data

2024-01-16 Thread Robert Kern
On Tue, Jan 16, 2024 at 11:05 PM hao chen wrote: > When dealing with lists that contain duplicate data, np.argsort fails to > return index values that correspond to the actual sorting positions of the > data, as it does when handling arrays without duplicates. > > Dear Author: > > When I use the