Ë
    ›2ÚiË  ã                  ó>   — d dl mZ ddlmZ ddlmZ d dlZddœdd„Zy)	é    )Úannotationsé   )ÚArray)Ú_integer_dtypesN©Úaxisc              ó&  — |€| j                   dk7  rt        d«      ‚|j                  t        vrt	        d«      ‚|j                   dk7  rt        d«      ‚t        j                  t        j                  | j                  |j                  |¬«      «      S )zx
    Array API compatible wrapper for :py:func:`np.take <numpy.take>`.

    See its docstring for more information.
    r   z$axis must be specified when ndim > 1z+Only integer dtypes are allowed in indexingz%Only 1-dim indices array is supportedr   )
ÚndimÚ
ValueErrorÚdtyper   Ú	TypeErrorr   Ú_newÚnpÚtakeÚ_array)ÚxÚindicesr   s      úZ/var/www/html/acx/venv/lib/python3.12/site-packages/numpy/array_api/_indexing_functions.pyr   r      ss   € ð €|˜Ÿ™ !šÜÐ?Ó@Ð@Ø‡}�}œOÑ+ÜÐEÓFÐFØ‡|�|�qÒÜÐ@ÓAÐAÜ�:‰:”b—g‘g˜aŸh™h¨¯©¸TÔBÓCÐCó    )r   r   r   r   r   zOptional[int]Úreturnr   )	Ú
__future__r   Ú_array_objectr   Ú_dtypesr   Únumpyr   r   © r   r   ú<module>r      s   ðÝ "å  Ý $ã à?Cö Dr   