관리-도구
편집 파일: _internal.cpython-311.pyc
� �܋f�n � � � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m Z mZ ddlZn # e $ r dZY nw xY wej j dk Zej dk rd Znd Zd� Zd� Zd � Zd� Z ej d� � Z ej d� � Z ej d� � ZdeiZd� Z G d� d� � Zd� Zde_ G d� d� � Z G d� d� � Z!d� Z"d� Z#d� Z$d� Z%d� Z&i d d �d!d"�d#d#�d$d$�d%d%�d&d&�d'd'�d(d(�d)d)�d*d*�d+d+�d,d,�d-d-�d.d.�d/d/�d0d0�d1d2�d3d4d5d6d7d8d9��Z'd:�( e'�) � � � � Z*i d d �d!d"�d#d#�d$d$�d%d;�d&d<�d'd=�d(d>�d)d=�d*d>�d+d?�d,d@�d-dA�d.d.�d/d/�d1d2�dBd3�d5d6d7d8dC��Z+d:�( e+�) � � � � Z,dDdEdFdGdH�Z- G dI� dJ� � Z.dK� Z/dL� Z0dM� Z1dN� Z2dO� Z3dP� Z4dQ� Z5dR� Z6dS� Z7dT� Z8dU� Z9dS )VzI A place for internal code Some things are more easily handled Python. � N� )�DTypePromotionError� )�dtype�array�ndarray� promote_types�pypy�little�<�>c �> � g }| � � � D ]�\ }}t |� � }t |t � � r|dvrt d� � �|dk r |d |k r�Ot |d � � }|dk rt d� � �t |d |�� � }|dk r |d }nd }|� ||||f� � ��|� d� � � � d � |D � � } d� |D � � } d� |D � � }d � |D � � }| | ||fS )N)r � zentry not a 2- or 3- tupler r r zinvalid offset.��alignc � � | d S )Nr � )�xs �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/core/_internal.py�<lambda>z!_makenames_list.<locals>.<lambda>- s � ��1�� � )�keyc � � g | ] }|d ��S �r r ��.0r s r � <listcomp>z#_makenames_list.<locals>.<listcomp>. s � �%�%�%�a�Q�q�T�%�%�%r c � � g | ] }|d ��S �r r r s r r z#_makenames_list.<locals>.<listcomp>/ � � �'�'�'��q��t�'�'�'r c � � g | ] }|d ��S )r r r s r r z#_makenames_list.<locals>.<listcomp>0 r r c � � g | ] }|d ��S )r r r s r r z#_makenames_list.<locals>.<listcomp>1 s � � &� &� &�q�a��d� &� &� &r ) �items�len� isinstance�tuple� ValueError�intr �append�sort) �adictr � allfields�fname�obj�n�num�format�title�names�formats�offsets�titless r �_makenames_listr7 sU � ��I��k�k�m�m� 6� 6� ��s���H�H���#�u�%�%� ;��&����9�:�:�:��q�5�5�S��V�u�_�_���#�a�&�k�k����7�7��.�/�/�/��s�1�v�U�+�+�+���q�5�5���F�E�E��E����%���e�4�5�5�5�5� �N�N�~�~�N�&�&�&�%�%�9�%�%�%�E�'�'�Y�'�'�'�G�'�'�Y�'�'�'�G� &� &�I� &� &� &�F��'�7�F�*�*r c � � | d }n# t $ r d }Y nw xY w|�t | |� � \ }}}}n�g }g }g }|D ]�}| | }|� |d � � |� |d � � t |� � dk r|� |d � � �o|� d � � ��t ||||d�|� � S )N���r r r )r3 r4 r5 r6 )�KeyErrorr7 r) r$ r )r+ r r3 r4 r5 r6 �name�ress r � _usefieldsr= 8 s � ���b� ����� � � ����������}�*9�%��*G�*G�'��w����������� $� $�D���+�C��N�N�3�q�6�"�"�"��N�N�3�q�6�"�"�"��3�x�x�!�|�|�� � �c�!�f�%�%�%�%�� � �d�#�#�#�#��5�$�$�"�$� $� &+�,� ,� ,s � ��c �j �� | j ���_| j }|�9| j �| j S | j � � � }|r | j |fS | j S t |d � � |d fS | j }�fd�|D � � }g }d}|D ]�}|d |k r+|d |z }|� dd|� �f� � ||z }n|d |k rt d� � �t |� � dk r|d |d f} n|d } |d j r5| t |d j d � � |d j d f} n| t |d � � f} ||d j z }|� | � � ��| j |k r$| j |z }|� dd|� �f� � |S ) Nr r c �( �� g | ]}�| |fz ��S r r )r r �fieldss �r r z _array_descr.<locals>.<listcomp>i s$ �� �6�6�6�1�f�Q�i�1�$�&�6�6�6r � z|VzLdtype.descr is not defined for types with overlapping or out-of-order fieldsr r )r@ �subdtype�metadata�str�copy�_array_descrr3 r) r'