← Back
Editing: _sorting_functions.cpython-311.pyc
� ���c� � �J � d dl mZ ddlmZ d dlZdddd�dd�Zdddd�dd�ZdS )� )�annotations� )�ArrayN���FT)�axis� descending�stable�xr r �intr �boolr �returnc �J � |rdnd}|st j | j ||�� � }nkt j t j t j | j |�� � ||�� � |�� � }|dk r|n | j |z }| j | dz }||z }t j |� � S )z~ Array API compatible wrapper for :py:func:`np.argsort <numpy.argsort>`. See its docstring for more information. r � quicksort�r �kind�r r r )�np�argsort�_array�flip�ndim�shaper �_new)r r r r r �res�normalised_axis�max_is �D/usr/lib/python3/dist-packages/numpy/array_api/_sorting_functions.pyr r s� � � �.�8�8�;�D�� ��j����4�8�8�8��� �g��J�r�w�q�x�d�3�3�3�$�T�J�J�J�� � � �� #'�!�)�)�$�$���$������(�1�,���c�k���:�c�?�?�� c � � |rdnd}t j | j ||�� � }|rt j ||�� � }t j |� � S )zx Array API compatible wrapper for :py:func:`np.sort <numpy.sort>`. See its docstring for more information. r r r r )r �sortr r r r )r r r r r r s r r r $ sT � � �.�8�8�;�D� �'�!�(��D� 1� 1� 1�C�� &��g�c��%�%�%���:�c�?�?�r ) r r r r r r r r r r )� __future__r � _array_objectr �numpyr r r � r r �<module>r% s� �� "� "� "� "� "� "� � � � � � � � � � � !#�u�T�� � � � � �8 !#�u�T� � � � � � � � r
Save File
Cancel