File: //usr/local/lib/python3.10/dist-packages/numpy/lib/__pycache__/arraysetops.cpython-310.pyc
o
���gw� � @ sb d Z ddlZddlZddlmZ ejejdd�Zg d�Zd/dd�Z ee �d/d d
��Z
dd� Z d0dd
�dd�Zee� d1dd
�dd��Z
d2dd
�dd�Z d/dd�Zee�d3dd��Zd4dd�Zee�d5dd��Zd/dd�dd �Zee�d3dd�d!d"��Zd/dd�d#d$�Zee�d3dd�d%d&��Zd'd(� Zee�d)d*� �Zd4d+d,�Zee�d5d-d.��ZdS )6a~
Set operations for arrays based on sorting.
Notes
-----
For floating point arrays, inaccurate results may appear due to usual round-off
and floating point comparison issues.
Speed could be gained in some operations by an implementation of
`numpy.sort`, that can provide directly the permutation vectors, thus avoiding
calls to `numpy.argsort`.
Original author: Robert Cimrman
� N)� overrides�numpy)�module)�ediff1d�intersect1d�setxor1d�union1d� setdiff1d�unique�in1d�isinc C s
| ||fS �N� )�ary�to_end�to_beginr r �@/usr/local/lib/python3.10/dist-packages/numpy/lib/arraysetops.py�_ediff1d_dispatcher! s
r c C sJ t �| ��� } | j}|du r|du r| dd� | dd� S |du r%d}nt �|�}t j||dd�s6td��|�� }t|�}|du rEd}nt �|�}t j||dd�sVtd��|�� }t|�}tt| �d d�}t j|| | | jd �}| � |�}|dkr�||d|�<