|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/python37/lib64/python3.7/site-packages/numpy/lib/__pycache__/ |
Upload File : |
B
�9�`�N � @ s� d Z ddlmZmZmZ ddlZdddddd d
dgZddd�Zddd �Z ddd�Z
ddd�Zddd�Zddd
�Z
ddd�Zdd� Zddd�ZdS )a
Set operations for arrays based on sorting.
:Contains:
unique,
isin,
ediff1d,
intersect1d,
setxor1d,
in1d,
union1d,
setdiff1d
: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
sort(), that can provide directly the permutation vectors, avoiding
thus calls to argsort().
To do: Optionally return indices analogously to unique for all functions.
:Author: Robert Cimrman
� )�division�absolute_import�print_functionN�ediff1d�intersect1d�setxor1d�union1d� setdiff1d�unique�in1d�isinc C s t �| ��� } |dkr6|dkr6| dd� | dd� S |dkrDd}nt �|��� }t|�}|dkrhd}nt �|��� }t|�}tt| �d d�}t j|| | | jd�}| �|�}|dkr�||d|�<