PATH:
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
core
/
tests
/
__pycache__
B ��FdQ � @ sf d dl mZmZmZ d dlZd dlZd dlmZm Z m Z mZmZm Z G dd� de�Zedkrbe � dS )� )�division�absolute_import�print_functionN)�TestCase�run_module_suite�assert_� assert_raises�assert_array_equal�HAS_REFCOUNTc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�TestTakec C s� ddgddgg}ddgddgg}d d dg}ddg}t jd t jd�t jt� t jd�t jdt jd�g}dtd�dd d�d dd�d�}t jt jt �dg�f}�x6|D �],}t jt � |t j �r�|n||d�} t| j� � �} x�|D ]�}|jd k�rd|j | d _d|j | d _x�|D ]�}x�|D ]�} || | }|tk�r`|jd k�r`|�d | � tt| j||dd� n\|jd k�r�|�d | � | j||dd�}t|| | � n$| j||dd�}t|jd|j k� �qW �qW q�W q�W d S )N� � � � � 1� 2� 3� 4�raise�wrap�clip���r )�dtype)r r )r r )r r r )� �ir )r )�mode�axis)�np�empty�intp�tuple� IndexError�int�objectr �array� issubdtype�number�list�T�copy�size�shape�putr �taker r )�self�aZa_strZmodes�indicesZindex_arraysZreal_indices�types�t�taZtresultZindex_arrayr �indexZ real_index�res� r6 ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/tests/test_item_selection.py�test_simple s>