관리-도구
편집 파일: test_manipulation_functions.cpython-311.pyc
� �܋f? � �h � d dl mZ d dlZddlmZ ddlmZ ddlm Z m Z ddlmZm Z mZ d� Zd � Zd � ZdS )� )� assert_raisesN� )�all)�asarray)�float64�int8)�concat�reshape�stackc �^ � t t d� � � t t d� � � d S )Nc �$ � t dd �� � S )N)� r )�axis)r � � ��/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/array_api/tests/test_manipulation_functions.py�<lambda>z$test_concat_errors.<locals>.<lambda> s � �V�F��%>�%>�%>� r c �x � t t dgt �� � t dgt �� � g� � S )Nr ��dtype)r r r r r r r r z$test_concat_errors.<locals>.<lambda> s; � �V�W�a�S��-E�-E�-E�-4�a�S��-H�-H�-H�-J� &K� &K� r �r � TypeErrorr r r �test_concat_errorsr sE � ��)�>�>�?�?�?��)� K� K� L� L� L� L� Lr c �2 � t t d� � � d S )Nc �| � t t ddgt �� � t ddgt �� � g� � S )Nr r r )r r r r r r r r z#test_stack_errors.<locals>.<lambda> s? � �U�G�Q��F�$�,G�,G�,G�,3�Q��F�'�,J�,J�,J�,L� &M� &M� r r r r r �test_stack_errorsr s1 � ��)� M� M� N� N� N� N� Nr c � �� t t j d� � � � �t �dd�� � } t j �j | j � � rJ �t t j d� � � � �t �dd�� � } t j �j | j � � sJ �t t j d� � j � � �t �dd�� � } t t �fd�� � d S )N�r � )r r T��copyFc �( �� t � dd�� � S )Nr Fr )r )�as �r r z#test_reshape_copy.<locals>.<lambda>$ s �� �'�!�V�%�*H�*H�*H� r ) r �np�onesr � shares_memory�_array�Tr �AttributeError)�br# s @r �test_reshape_copyr+ s� �� ������� � �A���6��%�%�%�A�����!�(�3�3�3�3�3������� � �A���6��&�&�&�A� ��A�H�a�h�/�/�/�/�/�������!�"�"�A���6��%�%�%�A��.�"H�"H�"H�"H�I�I�I�I�Ir )� numpy.testingr �numpyr$ � r �_creation_functionsr �_dtypesr r �_manipulation_functionsr r r r r r+ r r r �<module>r2 s� �� '� '� '� '� '� '� � � � � � � � � � � )� )� )� )� )� )� #� #� #� #� #� #� #� #�� � � � � � � � � �L� L� L�N� N� N� J� J� J� J� Jr