관리-도구
편집 파일: test_nditer.cpython-37.pyc
B ��Fd�� � @ s< d dl mZmZmZ d dlZd dlZd dlZd dlmZm Z m Z mZ d dlm Z d dlmZmZmZmZmZmZmZmZmZ dd� Zdd � Zd d� Ze�e d�d d� �Zdd� Zdd� Zdd� Zdd� Z dd� Z!dd� Z"dd� Z#dd� Z$dd � Z%d!d"� Z&d#d$� Z'd%d&� Z(d'd(� Z)d)d*� Z*d+d,� Z+d-d.� Z,d/d0� Z-d1d2� Z.d3d4� Z/d5d6� Z0d7d8� Z1d9d:� Z2d;d<� Z3d=d>� Z4d?d@� Z5dAdB� Z6dCdD� Z7dEdF� Z8dGdH� Z9dIdJ� Z:dKdL� Z;dMdN� Z<dOdP� Z=dQdR� Z>dSdT� Z?dUdV� Z@dWdX� ZAdYdZ� ZBd[d\� ZCd]d^� ZDd_d`� ZEdadb� ZFdcdd� ZGdedf� ZHdgdh� ZIdidj� ZJdkdl� ZKdmdn� ZLdodp� ZMdqdr� ZNdsdt� ZOdudv� ZPdwdx� ZQdydz� ZRd{d|� ZSd}d~� ZTdd�� ZUejVd�d�� �ZWd�d�� ZXd�d�� ZYd�d�� ZZd�d�� Z[d�d�� Z\d�d�� Z]d�d�� Z^d�d�� Z_d�d�� Z`d�d�� Zad�d�� Zbd�d�� Zcd�d�� Zdd�d�� Zed�d�� Zfd�d�� Zgd�d�� Zhd�d�� Zid�d�� Zjd�d�� Zkd�d�� Zlemd�k�r8e� dS )�� )�division�absolute_import�print_functionN)�array�arange�nditer�all)�test_nditer_too_large) �run_module_suite�assert_�assert_equal�assert_array_equal� assert_raises�assert_warns�dec�HAS_REFCOUNT�suppress_warningsc C s( g }x| j s"|�| j� | �� qW |S )N)�finished�append�multi_index�iternext)�i�ret� r ��/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_nditer.py�iter_multi_index s r c C s( g }x| j s"|�| j� | �� qW |S )N)r r �indexr )r r r r r �iter_indices s r c C s( g }x| j s"|�| j� | �� qW |S )N)r r � iterindexr )r r r r r �iter_iterindices s r z$python does not have sys.getrefcountc C sf t d�} t�d��� }t�| �}t�|�}t| g ddggd|gd�}t|j � tt�| �|k� tt�|�|k� d }t t�| �|� t t�|�|� t ddd�} t�d�}t�| �}t�|�}t| g dgg|gd�}t�| �}t�|�}|� � }tt�| �|k� tt�|�|k� d }t t�| �|� t t�|�|� d }t t�| �|� t t�|�|� ~d S ) N� �f4� readwrite�updateifcopy�unsafe)�casting� op_dtypes)�dtype)r&