$83 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.230
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core/__pycache__//overrides.cpython-311.pyc
�

�|oi�����dZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZe��Z
dZd�Ze	ed	��e	e
d
��ejdd��Zd
�Z		dd�Z	dd�ZdS)z;Implementation of __array_function__ overrides from NEP-18.�N�)�
set_module)�
getargspec)�
add_docstring�_get_implementing_args�_ArrayFunctionDispatcherarlike : array_like, optional
        Reference object to allow the creation of arrays which are not
        NumPy arrays. If an array-like passed in as ``like`` supports
        the ``__array_function__`` protocol, the result will be defined
        by it. In this case, it ensures the creation of an array object
        compatible with that passed in via this argument.c�^�|j�%|j�dt��|_|S)Nz${ARRAY_FUNCTION_LIKE})�__doc__�replace�array_function_like_doc)�
public_apis �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/core/overrides.py�set_array_function_like_docrs4����%�'�/�7�7�$�#�
�
�
����a�
    Class to wrap functions with checks for __array_function__ overrides.

    All arguments are required, and can only be passed by position.

    Parameters
    ----------
    dispatcher : function or None
        The dispatcher function that returns a single sequence-like object
        of all arguments relevant.  It must have the same signature (except
        the default values) as the actual implementation.
        If ``None``, this is a ``like=`` dispatcher and the
        ``_ArrayFunctionDispatcher`` must be called with ``like`` as the
        first (additional and positional) argument.
    implementation : function
        Function that implements the operation on NumPy arrays without
        overrides.  Arguments passed calling the ``_ArrayFunctionDispatcher``
        will be forwarded to this (and the ``dispatcher``) as if using
        ``*args, **kwargs``.

    Attributes
    ----------
    _implementation : function
        The original implementation passed in.
    ar
    Collect arguments on which to call __array_function__.

    Parameters
    ----------
    relevant_args : iterable of array-like
        Iterable of possibly array-like arguments to check for
        __array_function__ methods.

    Returns
    -------
    Sequence of arguments with __array_function__ methods, in the order in
    which they should be called.
    �ArgSpeczargs varargs keywords defaultsc��tt|���}tt|���}|j|jks{|j|jksk|j|jks[t|j��t|j��ks1|j�<t|j��t|j��krtd|z���|j�/|jdt|j��zkrtd���dSdS)z:Verify that a dispatcher function has the right signature.NzGimplementation and dispatcher for %s have different function signatures)NzBdispatcher functions can only use None for default argument values)	rr�args�varargs�keywords�bool�defaults�len�RuntimeError)�implementation�
dispatcher�implementation_spec�dispatcher_specs    r�verify_matching_signaturesrSs"��!�:�n�#=�#=�>���z�*�5�5�6�O�� �O�$8�8�8��'�?�+B�B�B��(�O�,D�D�D�
�%�.�
/�
/�
�/�*�
+�
+�,�,�
 �
)�
5�
�$�-�
.�
.�
��)�
*�
*�+�+��;�=K�L�M�M�	M��#�/��#�w��_�5M�1N�1N�'N�N�N�� 9�:�:�
:�0�/�N�NrTFc����������fd�}|S)axDecorator for adding dispatch with the __array_function__ protocol.

    See NEP-18 for example usage.

    Parameters
    ----------
    dispatcher : callable or None
        Function that when called like ``dispatcher(*args, **kwargs)`` with
        arguments from the NumPy function call returns an iterable of
        array-like arguments to check for ``__array_function__``.

        If `None`, the first argument is used as the single `like=` argument
        and not passed on.  A function implementing `like=` must call its
        dispatcher with `like` as the first non-keyword argument.
    module : str, optional
        __module__ attribute to set on new function, e.g., ``module='numpy'``.
        By default, module is copied from the decorated function.
    verify : bool, optional
        If True, verify the that the signature of the dispatcher and decorated
        function signatures match exactly: all required and optional arguments
        should appear in order with the same names, but the default values for
        all optional arguments should be ``None``. Only disable verification
        if the dispatcher's signature needs to deviate for some particular
        reason, e.g., because the function has a signature like
        ``func(*args, **kwargs)``.
    docs_from_dispatcher : bool, optional
        If True, copy docs from the dispatcher function onto the dispatched
        function, rather than from the implementation. This is useful for
        functions defined in C, which otherwise don't have docstrings.

    Returns
    -------
    Function suitable for decorating the implementation of a NumPy function.

    c����r]��t|���nJ|j}|j|jzdz
}|j|}|dks|jdkrtd|�d�����rt
|�j��t�|��}tj
|��|��}���|_t�
|��|S)N��likerzX__array_function__ expects `like=` to be the last argument and a keyword-only argument. z does not seem to comply.)r�__code__�co_argcount�co_kwonlyargcount�co_varnamesrrr
r�	functools�wraps�
__module__�ARRAY_FUNCTIONS�add)r�co�last_argr
r�docs_from_dispatcher�module�verifys    ����r�	decoratorz*array_function_dispatch.<locals>.decorator�s����	F��%�*�>�:�F�F�F�F�$�,���>�B�,@�@�1�D���>�(�3���v�%�%��)=��)B�)B�&�E�)�E�E�E�F�F�F�
 �	>��.�*�*<�=�=�=�-�j�.�I�I�
�4�Y�_�^�4�4�Z�@�@�
���$*�J�!����J�'�'�'��r�)rr/r0r.r1s```` r�array_function_dispatchr3is7������J��������8�rc����������fd�}|S)zDLike array_function_dispatcher, but with function arguments flipped.c�<��t|���������S)N)r0r.)r3)rr.rr/r0s ����rr1z1array_function_from_dispatcher.<locals>.decorator�s9���7�&���v�!5�7�7�7�7E�G�G�	Grr2)rr/r0r.r1s```` r�array_function_from_dispatcherr6�s>������G�G�G�G�G�G�G�G��r)NNTF)NTT)r
�collectionsr'�os�_utilsr�_utils._inspectr�numpy.core._multiarray_umathrrr�setr*rr�
namedtuplerrr3r6r2rr�<module>r>s\��A�A���������	�	�	�	�������(�(�(�(�(�(�F�F�F�F�F�F�F�F�F�F��#�%�%��=������
���	�	�	�<�
��
�	�	�	�$!�+�
 ��,L�
M�
M��:�:�:�,BF�16�A�A�A�A�JHL������r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.cpython-311.pyc
5.763 KB
11 Feb 2026 9.33 AM
root / root
0644
_add_newdocs.cpython-311.pyc
201.147 KB
11 Feb 2026 9.33 AM
root / root
0644
_add_newdocs_scalars.cpython-311.pyc
13.565 KB
11 Feb 2026 9.33 AM
root / root
0644
_asarray.cpython-311.pyc
4.548 KB
11 Feb 2026 9.33 AM
root / root
0644
_dtype.cpython-311.pyc
13.505 KB
11 Feb 2026 9.33 AM
root / root
0644
_dtype_ctypes.cpython-311.pyc
5.165 KB
11 Feb 2026 9.33 AM
root / root
0644
_exceptions.cpython-311.pyc
9.201 KB
11 Feb 2026 9.33 AM
root / root
0644
_internal.cpython-311.pyc
37.174 KB
11 Feb 2026 9.33 AM
root / root
0644
_machar.cpython-311.pyc
12.408 KB
11 Feb 2026 9.33 AM
root / root
0644
_methods.cpython-311.pyc
11.421 KB
11 Feb 2026 9.33 AM
root / root
0644
_string_helpers.cpython-311.pyc
3.504 KB
11 Feb 2026 9.33 AM
root / root
0644
_type_aliases.cpython-311.pyc
8.971 KB
11 Feb 2026 9.33 AM
root / root
0644
_ufunc_config.cpython-311.pyc
17.081 KB
11 Feb 2026 9.33 AM
root / root
0644
arrayprint.cpython-311.pyc
74.873 KB
11 Feb 2026 9.33 AM
root / root
0644
cversions.cpython-311.pyc
0.73 KB
20 Jan 2026 1.01 PM
root / root
0644
defchararray.cpython-311.pyc
86.34 KB
11 Feb 2026 9.33 AM
root / root
0644
einsumfunc.cpython-311.pyc
53.66 KB
11 Feb 2026 9.33 AM
root / root
0644
fromnumeric.cpython-311.pyc
135.147 KB
11 Feb 2026 9.33 AM
root / root
0644
function_base.cpython-311.pyc
21.749 KB
11 Feb 2026 9.33 AM
root / root
0644
generate_numpy_api.cpython-311.pyc
9.256 KB
20 Jan 2026 1.01 PM
root / root
0644
getlimits.cpython-311.pyc
29.305 KB
11 Feb 2026 9.33 AM
root / root
0644
memmap.cpython-311.pyc
13.2 KB
11 Feb 2026 9.33 AM
root / root
0644
multiarray.cpython-311.pyc
56.09 KB
11 Feb 2026 9.33 AM
root / root
0644
numeric.cpython-311.pyc
88.526 KB
11 Feb 2026 9.33 AM
root / root
0644
numerictypes.cpython-311.pyc
21.381 KB
11 Feb 2026 9.33 AM
root / root
0644
overrides.cpython-311.pyc
7.775 KB
11 Feb 2026 9.33 AM
root / root
0644
records.cpython-311.pyc
43.074 KB
11 Feb 2026 9.33 AM
root / root
0644
setup.cpython-311.pyc
56.761 KB
20 Jan 2026 1.01 PM
root / root
0644
setup_common.cpython-311.pyc
15.612 KB
20 Jan 2026 1.01 PM
root / root
0644
shape_base.cpython-311.pyc
33.267 KB
11 Feb 2026 9.33 AM
root / root
0644
umath.cpython-311.pyc
1.771 KB
11 Feb 2026 9.33 AM
root / root
0644
umath_tests.cpython-311.pyc
0.63 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF