관리-도구
편집 파일: test_numeric.cpython-311.pyc
� �܋f_ � �| � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlZ d dl mZ d dlm Z mZmZ d dlmZmZmZmZmZmZmZmZmZmZmZ d dlmZ d dlmZm Z! d dl"mZ# G d � d � � Z$ G d� d� � Z% G d � d� � Z& G d� d� � Z' G d� d� � Z( G d� d� � Z) G d� d� � Z* G d� d� � Z+ G d� d� � Z, G d� de-� � Z. G d� d� � Z/ G d� d � � Z0 G d!� d"� � Z1 G d#� d$� � Z2 G d%� d&� � Z3 G d'� d(� � Z4d)� Z5 G d*� d+� � Z6 G d,� d-� � Z7 G d.� d/� � Z8 G d0� d1� � Z9 G d2� d3� � Z: G d4� d5� � Z; G d6� d7� � Z< G d8� d9� � Z= G d:� d;� � Z> G d<� d=� � Z? G d>� d?� � Z@ G d@� dA� � ZA G dB� dC� � ZB G dD� dE� � ZC G dF� dG� � ZDdH� ZE G dI� dJ� � ZF G dK� dL� � ZG G dM� dN� � ZH G dO� dP� � ZI G dQ� dR� � ZJdS )S� N)�Decimal)�umath)�rand�randint�randn)�assert_�assert_equal� assert_raises�assert_raises_regex�assert_array_equal�assert_almost_equal�assert_array_almost_equal�assert_warns�assert_array_max_ulp�HAS_REFCOUNT�IS_WASM)�rational)�given� strategies)�numpyc �2 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� ZdS )� TestResizec � � t j ddgddgg� � }t j g d�g d�g� � }t t j |d� � |� � t j ddgddgddgddgg� � }t t j |d� � |� � t j g d�g d �g d �g d�g� � }t t j |d� � |� � d S ) N� � � � �r r r r �r r �r r �r r r )r r r )r r r �r r r �r r ��np�arrayr �resize��self�A�Ar1�Ar2�Ar3s �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_numeric.py�test_copieszTestResize.test_copies s� � ��H�q�!�f�q�!�f�%�&�&���h����l�l�l�3�4�4���R�Y�q�&�)�)�3�/�/�/��h��A���A���A���A��7�8�8���R�Y�q�&�)�)�3�/�/�/��h� � � �9�9�9�i�i�i����C�D�D���R�Y�q�&�)�)�3�/�/�/�/�/� c � � t j g d�� � }t j g d�g d�g� � }t t j |d� � |� � t j ddgddgddgddgg� � }t t j |d� � |� � t j g d�g d�g d�g d�g� � }t t j |d � � |� � d S ) Nr! )r r r r )r r r r r r r r r r# r$ r( s r. �test_repeatszTestResize.test_repeats# s� � ��H�Y�Y�Y�����h����l�l�l�3�4�4���R�Y�q�&�)�)�3�/�/�/��h��A���A���A���A��7�8�8���R�Y�q�&�)�)�3�/�/�/��h� � � �9�9�9�i�i�i����C�D�D���R�Y�q�&�)�)�3�/�/�/�/�/r0 c � � t j ddgddgg� � }t j |d� � }t |t j g � � � � t |j |j � � t j |d� � }t |j d� � t j |d� � }t |j d� � d S )Nr r r r �r �r r �r r )r% r&