
    (ph                        S SK Jr  SSKJr  SSKJrJr  S SKJrJ	r	  S SK
rSSS.SS	 jjrSSS.SS
 jjrSS jrSS jrg)    )annotations   )Array)_result_type_real_numeric_dtypes)OptionalTupleNFaxiskeepdimsc         
         U R                   [        ;  a  [        S5      e[        R                  " [
        R                  " [
        R                  " U R                  XS95      5      $ )zp
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      W/var/www/html/venv/lib/python3.13/site-packages/numpy/array_api/_searching_functions.pyr   r      D     	ww**HII::bjj188$!RSTT    c         
         U R                   [        ;  a  [        S5      e[        R                  " [
        R                  " [
        R                  " U R                  XS95      5      $ )zp
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               b    [        S [        R                  " U R                  5       5       5      $ )zr
Array API compatible wrapper for :py:func:`np.nonzero <numpy.nonzero>`.

See its docstring for more information.
c              3  N   #    U  H  n[         R                  " U5      v   M     g 7f)N)r   r   ).0is     r   	<genexpr>nonzero.<locals>.<genexpr>'   s     =(<1A(<s   #%)tupler   nonzeror   )r   s    r   r#   r#   !   s"     =

188(<===r   c                  [        UR                  UR                  5        [        R                  " X5      u  p[        R                  " [
        R                  " U R                  UR                  UR                  5      5      $ )zn
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&   *   sR     288$&&r.FB::bhhy//BII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>r2      s9    "   7 "  26 U 26 U>	Hr   