hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Ë
Kñúh ãó—dZdgZdd„Zy)z!
Introspection helper functions.
Ú opt_func_infoNcó¦‡ ‡ —ddl}ddlm}ddlmŠ |F|j    |«}|j «Dcic]\}}|j |«r||“Œ}}}n|}|j|j    |«Š i}|j «D]B\}}i}    |j «D] \}
}tˆ ˆ fd„|
D««sŒ||    |
<Œ"|    sŒ>|    ||<ŒD|S|}|Scc}}w)am
    Returns a dictionary containing the currently supported CPU dispatched
    features for all optimized functions.
 
    Parameters
    ----------
    func_name : str (optional)
        Regular expression to filter by function name.
 
    signature : str (optional)
        Regular expression to filter by data type.
 
    Returns
    -------
    dict
        A dictionary where keys are optimized function names and values are
        nested dictionaries indicating supported targets based on data types.
 
    Examples
    --------
    Retrieve dispatch information for functions named 'add' or 'sub' and
    data types 'float64' or 'float32':
 
    >>> import numpy as np
    >>> dict = np.lib.introspect.opt_func_info(
    ...     func_name="add|abs", signature="float64|complex64"
    ... )
    >>> import json
    >>> print(json.dumps(dict, indent=2))
        {
          "absolute": {
            "dd": {
              "current": "SSE41",
              "available": "SSE41 baseline(SSE SSE2 SSE3)"
            },
            "Ff": {
              "current": "FMA3__AVX2",
              "available": "AVX512F FMA3__AVX2 baseline(SSE SSE2 SSE3)"
            },
            "Dd": {
              "current": "FMA3__AVX2",
              "available": "AVX512F FMA3__AVX2 baseline(SSE SSE2 SSE3)"
            }
          },
          "add": {
            "ddd": {
              "current": "FMA3__AVX2",
              "available": "FMA3__AVX2 baseline(SSE SSE2 SSE3)"
            },
            "FFF": {
              "current": "FMA3__AVX2",
              "available": "FMA3__AVX2 baseline(SSE SSE2 SSE3)"
            }
          }
        }
 
    éN)Ú__cpu_targets_info__)Údtypec3ó†•K—|]8}‰j|«xs!‰j‰|«j«–—Œ:y­w)N)ÚsearchÚname)Ú.0ÚcrÚ sig_patterns  €€úGH:\Change_password\venv_build\Lib\site-packages\numpy/lib/introspect.pyú    <genexpr>z opt_func_info.<locals>.<genexpr>Vs?øèø€òàð ×&Ñ& qÓ)ÒN¨[×-?Ñ-?ÁÀaÃÇ Á Ó-NÓNñùsƒ>A)ÚreÚnumpy._core._multiarray_umathrrÚcompileÚitemsrÚany) Ú    func_nameÚ    signaturerÚtargetsÚ func_patternÚkÚvÚmatching_funcsÚ matching_sigsÚmatching_charsÚcharsrr s            @@r rrsù€ótåMÝ3àÐØ—z‘z )Ó,ˆ à$Ÿ]™]›_÷
ِQ˜Ø×"Ñ" 1Ô%ð ˆq‰Dð
ˆò
ð
!ˆàÐØ—j‘j Ó+ˆ ؈ Ø"×(Ñ(Ó*ò        2‰DˆAˆq؈NØ"#§'¡'£)ò 4‘wÜôà"ôõð-4N 5Ò)ð  4ò Ø#1 ˜aÒ ð        2ð Ðð'ˆ Ø Ðùó-
s¹C )NN)Ú__doc__Ú__all__r©ór ú<module>r"sðñð Ð
€ôWr!