File: //usr/lib/python3/dist-packages/numpy/lib/__pycache__/arraysetops.cpython-310.pyc
o
6��alg � @ s8 d Z ddlZddlZddlmZ ejejdd�Zg d�Zd,dd�Z ee �d,d d
��Z
dd� Z d-d
d�Zee� d.dd��Z
d/dd�Z d,dd�Zee�d0dd��Zd1dd�Zee�d2dd��Zd,dd�Zee�d0dd��Zd,d d!�Zee�d0d"d#��Zd$d%� Zee�d&d'� �Zd1d(d)�Zee�d2d*d+��ZdS )3a~
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 �7/usr/lib/python3/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|�<