File: //lib/python3/dist-packages/numpy/lib/__pycache__/ufunclike.cpython-310.pyc
o
6��a_ � @ s� d Z g d�Zddlm mZ ddlmZmZ ddl Z ddl
Z
dd� Zdd� Zd d
� Z
eddd��Zeed
dd�e
ddd���Zeed
dd�e
ddd���Zeed
dd�e
ddd���ZdS )zr
Module of functions that are like ufuncs in acting on arrays and optionally
storing results in an output array.
)�fix�isneginf�isposinf� N)�array_function_dispatch�ARRAY_FUNCTION_ENABLEDc � t �� �d� fdd� �}|S )z|
Allow the out argument to be passed as the name `y` (deprecated)
In future, this decorator should be removed.
Nc sV d|v r!d|v rt d�� j���|�d�}tjd�� j�tdd� � | fd|i|��S )N�y�outz-{} got multiple values for argument 'out'/'y'zXThe name of the out argument to {} has changed from `y` to `out`, to match other ufuncs.� )�
stacklevel)� TypeError�format�__name__�pop�warnings�warn�DeprecationWarning��xr �kwargs��f� �5/usr/lib/python3/dist-packages/numpy/lib/ufunclike.py�func s �
�z$_deprecate_out_named_y.<locals>.func�N�� functools�wraps�r r r r r �_deprecate_out_named_y s r c r )z�
Allow the out argument to be passed as the name `y` (deprecated)
This decorator should only be used if _deprecate_out_named_y is used on
a corresponding dispatcher function.
Nc s&