1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
U
O±dàã@sœddlmZddlmZddlmZddlmZmZddl    Z
dddœd    d
d d    d œd d„Z dddœd    d
d d    d œdd„Z d    ddœdd„Z d    d    d    d    dœdd„ZdS)é)Ú annotationsé)ÚArray)Ú _result_type)ÚOptionalÚTupleNF©ÚaxisÚkeepdimsrz Optional[int]Úbool)Úxr    r
Úreturnc    Cst t tj|j||d¡¡S)z|
    Array API compatible wrapper for :py:func:`np.argmax <numpy.argmax>`.
 
    See its docstring for more information.
    r)rÚ_newÚnpÚasarrayÚargmaxÚ_array©r r    r
©rú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/array_api/_searching_functions.pyr src    Cst t tj|j||d¡¡S)z|
    Array API compatible wrapper for :py:func:`np.argmin <numpy.argmin>`.
 
    See its docstring for more information.
    r)rrrrÚargminrrrrrrsrzTuple[Array, ...])r r cCstdd„t |j¡DƒƒS)z~
    Array API compatible wrapper for :py:func:`np.nonzero <numpy.nonzero>`.
 
    See its docstring for more information.
    css|]}t |¡VqdS)N)rr)Ú.0ÚirrrÚ    <genexpr>#sznonzero.<locals>.<genexpr>)ÚtuplerÚnonzeror)r rrrrsr)Ú    conditionÚx1Úx2r cCs8t|j|jƒt ||¡\}}t t |j|j|j¡¡S)zz
    Array API compatible wrapper for :py:func:`np.where <numpy.where>`.
 
    See its docstring for more information.
    )rZdtyperZ_normalize_two_argsrrÚwherer)rrrrrrr&sr)Ú
__future__rZ _array_objectrZ_dtypesrÚtypingrrÚnumpyrrrrrrrrrÚ<module>s