ok
Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/lib/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/lib/__pycache__/mixins.cpython-311.pyc |
� �܋f� � �Z � d Z ddlmZ dgZd� Zd� Zd� Zd� Zd� Z d � Z G d � d� � ZdS )zEMixin classes for custom array types that don't inherit from ndarray.� )�umath�NDArrayOperatorsMixinc �8 � | j du S # t $ r Y dS w xY w)z)True when __array_ufunc__ is set to None.NF)�__array_ufunc__�AttributeError)�objs �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/lib/mixins.py�_disables_array_ufuncr s7 � ���"�d�*�*��� � � ��u�u����s � � �c �F � � � fd�}d� |� � |_ |S )z>Implement a forward binary method with a ufunc, e.g., __add__.c �H �� t |� � rt S �| |� � S �N�r �NotImplemented��self�other�ufuncs �r �funcz_binary_method.<locals>.func s+ �� � ��'�'� "�!�!��u�T�5�!�!�!� �__{}__��format�__name__�r �namer s ` r �_binary_methodr s6 �� �"� "� "� "� "� �O�O�D�)�)�D�M��Kr c �F � � � fd�}d� |� � |_ |S )zAImplement a reflected binary method with a ufunc, e.g., __radd__.c �H �� t |� � rt S �|| � � S r r r s �r r z&_reflected_binary_method.<locals>.func s+ �� � ��'�'� "�!�!��u�U�D�!�!�!r z__r{}__r r s ` r �_reflected_binary_methodr s8 �� �"� "� "� "� "� �$�$�T�*�*�D�M��Kr c �F � � � fd�}d� |� � |_ |S )zAImplement an in-place binary method with a ufunc, e.g., __iadd__.c �"