Ë
    ›2Úi³  ã                  ót   — d dl mZ ddlmZ ddlmZmZ d dlmZm	Z	 d dl
Zdddœdd	„Zdddœdd
„Zdd„Zdd„Zy)é    )Úannotationsé   )ÚArray)Ú_result_typeÚ_real_numeric_dtypes)ÚOptionalÚTupleNF©ÚaxisÚkeepdimsc         	     óÌ   — | j                   t        vrt        d«      ‚t        j                  t        j                  t        j                  | j                  ||¬«      «      «      S )z|
    Array API compatible wrapper for :py:func:`np.argmax <numpy.argmax>`.

    See its docstring for more information.
    z.Only real numeric dtypes are allowed in argmaxr
   )	Údtyper   Ú	TypeErrorr   Ú_newÚnpÚasarrayÚargmaxÚ_array©Úxr   r   s      ú[/var/www/html/acx/venv/lib/python3.12/site-packages/numpy/array_api/_searching_functions.pyr   r      óF   € ð 	‡w�wÔ*Ñ*ÜÐHÓIÐIÜ�:‰:”b—j‘j¤§¡¨1¯8©8¸$ÈÔ!RÓSÓTÐTó    c         	     óÌ   — | j                   t        vrt        d«      ‚t        j                  t        j                  t        j                  | j                  ||¬«      «      «      S )z|
    Array API compatible wrapper for :py:func:`np.argmin <numpy.argmin>`.

    See its docstring for more information.
    z.Only real numeric dtypes are allowed in argminr
   )	r   r   r   r   r   r   r   Úargminr   r   s      r   r   r      r   r   c               ó`   — t        d„ t        j                  | j                  «      D «       «      S )z~
    Array API compatible wrapper for :py:func:`np.nonzero <numpy.nonzero>`.

    See its docstring for more information.
    c              3  óF   K  — | ]  }t        j                  |«      –— Œ y ­w)N)r   r   )Ú.0Úis     r   ú	<genexpr>znonzero.<locals>.<genexpr>'   s   è ø€ Ò= 1”—‘˜A—Ñ=ùs   ‚!)Útupler   Únonzeror   )r   s    r   r"   r"   !   s"   € ô Ñ=¬¯
©
°1·8±8Ó(<Ô=Ó=Ð=r   c               ó  — t        |j                  |j                  «       t        j                  ||«      \  }}t        j                  t        j                  | j                  |j                  |j                  «      «      S )zz
    Array API compatible wrapper for :py:func:`np.where <numpy.where>`.

    See its docstring for more information.
    )r   r   r   Ú_normalize_two_argsr   r   Úwherer   )Ú	conditionÚx1Úx2s      r   r%   r%   *   sV   € ô �—‘˜2Ÿ8™8Ô$Ü×&Ñ& r¨2Ó.�F€BˆÜ�:‰:”b—h‘h˜y×/Ñ/°·±¸B¿I¹IÓFÓGÐGr   )r   r   r   zOptional[int]r   ÚboolÚreturnr   )r   r   r*   zTuple[Array, ...])r&   r   r'   r   r(   r   r*   r   )Ú
__future__r   Ú_array_objectr   Ú_dtypesr   r   Útypingr   r	   Únumpyr   r   r   r"   r%   © r   r   ú<module>r1      s9   ðÝ "å  ß 7ç "ã ð 26Èõ Uð 26Èõ Uó>ô	Hr   