%PDF- %PDF-
| Direktori : /lib64/python3.9/site-packages/numpy/lib/__pycache__/ |
| Current File : //lib64/python3.9/site-packages/numpy/lib/__pycache__/arraysetops.cpython-39.opt-1.pyc |
a
z[ycqh � @ s< d Z ddlZddlZddlmZ ejejdd�Zg d�Zd.dd�Z ee �d/d d
��Z
dd� Zd0dd
�dd�Zee�d1dd
�dd��Z
d2dd
�dd�Zd3dd�Zee�d4dd��Zd5dd�Zee�d6dd��Zd7dd�Zee�d8d d!��Zd9d"d#�Zee�d:d$d%��Zd&d'� Zee�d(d)� �Zd;d*d+�Zee�d<d,d-��ZdS )=a~
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/lib64/python3.9/site-packages/numpy/lib/arraysetops.py�_ediff1d_dispatcher! s r c C sN t �| ��� } | j}|du r<|du r<| dd� | dd� S |du rJd}n2t �|�}t j||dd�sltd��|�� }t|�}|du r�d}n2t �|�}t j||dd�s�td��|�� }t|�}tt| �d d�}t j|| | | jd �}| � |�}|dk�r||d|�<