관리-도구
편집 파일: test_nanfunctions.cpython-37.pyc
B ��FdE� � @ s d dl mZmZmZ d dlZd dlZd dlmZm Z m Z mZmZm Z mZmZmZ e�dejddejdgdd ejd ddgejejejd ejdgdejejddejgg�Ze�ddddg�e�dd d ddg�e�d dg�e�dddg�gZe�ddddddgdd dd ddgdddd ddgddddddgg�Ze�ddddddgdd dd ddgdddd ddgddddddgg�ZG dd� de �ZG dd� de �ZG dd� de �ZG dd� de�ZG dd� de e�ZG dd� de e�ZG d d!� d!e e�ZG d"d#� d#e �ZG d$d%� d%e �Z e!d&k�re� dS )'� )�division�absolute_import�print_functionN) �run_module_suite�TestCase�assert_�assert_equal�assert_almost_equal�assert_no_warnings� assert_raises�assert_array_equal�suppress_warningsg��s���?g&S��:�?g�����?g�ʡE��?g� ��?g�����g�z�G��?gL� F%u�?g6<�R�!�?g[B>�٬�?g�:M� �g�S㥛�?gz�):���?g�� h"�?g �?g c @ st e Zd ZejejgZejejgZ dd� Z dd� Zdd� Zdd� Z d d � Zdd� Zd d� Zdd� Zdd� Zdd� ZdS )�TestNanFunctions_MinMaxc C s. t �� }x | jD ]}||� t|t � qW d S )N)�_ndat�copy�nanfuncsr )�self�ndat�f� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/lib/tests/test_nanfunctions.py� test_mutation+ s z%TestNanFunctions_MinMax.test_mutationc C sd t �d�}xTt| j| j�D ]B\}}x8dD ]0}|||dd�}|||dd�}t|j|jk� q(W qW d S )N� )Nr � T)�axis�keepdims)�np�eye�zipr �stdfuncsr �ndim)r �mat�nf�rfr �tgt�resr r r � test_keepdims2 s z%TestNanFunctions_MinMax.test_keepdimsc C sb t �d�}xRt| j| j�D ]@\}}t �d�}||dd�}||d|d�}t||� t||� qW d S )Nr r )r )r �out)r r r r r �zerosr )r r! r"