관리-도구
편집 파일: test_numeric.cpython-37.pyc
B ��Fd�� � @ s� d dl mZmZmZ d dlZd dlZd dlZd dlZd dlm Z d dl Zd dlm Z d dlmZmZmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZ G dd� de�ZG d d � d e�Z G dd� de�Z!G d d� de�Z"G dd� de�Z#G dd� de�Z$G dd� de�Z%G dd� de�Z&G dd� de'�Z(G dd� de�Z)G dd� de�Z*G dd� de�Z+G dd � d e�Z,G d!d"� d"e�Z-G d#d$� d$e�Z.d%d&� Z/G d'd(� d(e�Z0G d)d*� d*e1�Z2G d+d,� d,e1�Z3G d-d.� d.e�Z4G d/d0� d0e�Z5G d1d2� d2e�Z6G d3d4� d4e�Z7G d5d6� d6e�Z8G d7d8� d8e�Z9G d9d:� d:e1�Z:G d;d<� d<e1�Z;G d=d>� d>e�Z<G d?d@� d@e�Z=G dAdB� dBe�Z>G dCdD� dDe�Z?dEdF� Z@G dGdH� dHe1�ZAG dIdJ� dJe�ZBG dKdL� dLe�ZCeDdMk�r�e� dS )N� )�division�absolute_import�print_functionN)�Decimal)�umath)�rand�randint�randn)�TestCase�run_module_suite�assert_�assert_equal� assert_raises�assert_raises_regex�assert_array_equal�assert_almost_equal�assert_array_almost_equal�dec�HAS_REFCOUNT�suppress_warningsc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )� TestResizec C s� t �ddgddgg�}t �ddddgddddgg�}tt �|d�|� t �ddgddgddgddgg�}tt �|d�|� t �dddgdddgdddgdddgg�}tt �|d�|� d S )N� � � � )r r )r r )r r )�np�arrayr �resize)�self�AZAr1ZAr2ZAr3� 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_numeric.py�test_copies s "*zTestResize.test_copiesc C sD t �ddgddgg�}t �|d�}t|t �g �� t|j|j� d S )Nr r r r )r )r r r r r �dtype)r r �Arr r r! �test_zeroresize s zTestResize.test_zeroresizec C sJ t jddt jdfgd�}t �|d�}t|t �d|j�� t|j|j� d S )Nr �ar )r# )r r )r �zeros�float32r r r# r )r r r$ r r r! �test_reshape_from_zero% s z!TestResize.test_reshape_from_zeroN)�__name__� __module__�__qualname__r"