관리-도구
편집 파일: test_packbits.cpython-311.pyc
� �܋f�D � �� � d dl Zd dlmZmZmZ d dlZd dlmZ d� Z d� Z d� Zej � dd� � d � � � Zd � Zd� Zd� Zd � Zd� Zd� Z G d� d� � ZdS )� N)�assert_array_equal�assert_equal� assert_raises)�chainc � � g d�g d�gg d�g d�gg} dD ]y}t j | |�� � }t j |d�� � }t |j t j � � t |t j d gd ggdgdggg� � � � �zt t t j t j | t �� � � � d S ) N)� r r )r r r )r r r )r r r �?bBhHiIlLqQ��dtype�����axis� �@ � � ) �np�array�packbitsr r �uint8r r � TypeError�float)�a�dt�arr�bs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/lib/tests/test_packbits.py� test_packbitsr s� � � �)�)�Y�Y�Y� � �)�)�Y�Y�Y� � !�A�� H� H���h�q��#�#�#���K��"�%�%�%���Q�W�b�h�'�'�'��1�b�h�#���� ����t�}�'E�F�F�G�G�G�G��)�R�[�"�(�1�E�*B�*B�*B�C�C�C�C�C� c �� � g d�} dD ]e}| D ]`}t j ||�� � }t j |� � }t |j t j � � t |j d� � �a�fd S )N)�r �� � r �r# r r$ �r r# r$ �r$ r r �r r$ r �r r r$ �r r r r r r! )r �emptyr r r r �shape)�shapesr r, r r s r �test_packbits_emptyr. s� � �� � �F� � (� (��� (� (�E����b�)�)�)�A���A���A����"�(�+�+�+����$�'�'�'�'� (�(� (r c �\ � ddgfdg d�fdg d�fdg d�fdg d �fd g d�fdg d �fdg d�fg} dD ]}| D ]z\ }}t |� � D ]e\ }}t j ||�� � }t j ||�� � }t |j t j � � t |j |� � �f�{��d S )Nr! r"