관리-도구
편집 파일: test_stride_tricks.cpython-37.pyc
B ��Fd�: � @ s$ d dl mZmZmZ d dlZd dlmZ d dlm Z m Z mZmZm Z d dlmZmZmZmZ dd� Zdd � Zd0dd�Zd d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Z d#d$� Z!G d%d&� d&ej"�Z#G d'd(� d(e#�Z$d)d*� Z%d+d,� Z&d-d.� Z'e(d/k�r e � dS )1� )�division�absolute_import�print_functionN)�rational)�run_module_suite�assert_equal�assert_array_equal� assert_raises�assert_)� as_strided�broadcast_arrays�_broadcast_shape�broadcast_toc C s@ dd� | D �}t |� }dd� |D �}|gt|� }t||� d S )Nc S s g | ]}t �|��qS � )�np�zeros)�.0�sr 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_stride_tricks.py� <listcomp> s z)assert_shapes_correct.<locals>.<listcomp>c S s g | ] }|j �qS r )�shape)r �ar r r r s )r �lenr )�input_shapes�expected_shape�inarraysZ outarraysZ outshapes�expectedr r r �assert_shapes_correct s r c C s"