
    Dg?                     h    d dl mZ d dlZddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZmZmZ d Zd	 Zd
 ZdS )    )assert_raisesN   )all)asarray)float64int8)concatreshapestackc                  ^    t          t          d            t          t          d            d S )Nc                  $    t          dd           S )N)   r   )axis)r	        f/var/www/sysmax/venv/lib/python3.11/site-packages/numpy/array_api/tests/test_manipulation_functions.py<lambda>z$test_concat_errors.<locals>.<lambda>   s    VF%>%>%> r   c                  x    t          t          dgt                    t          dgt                    g          S )Nr   dtype)r	   r   r   r   r   r   r   r   z$test_concat_errors.<locals>.<lambda>   s;    VWaS-E-E-E-4aS-H-H-H-J &K &K r   r   	TypeErrorr   r   r   test_concat_errorsr      sE    )>>???) K K L L L L Lr   c                  2    t          t          d            d S )Nc                  |    t          t          ddgt                    t          ddgt                    g          S )Nr   r   r   )r   r   r   r   r   r   r   r   z#test_stack_errors.<locals>.<lambda>   s?    UGQF$,G,G,G,3QF',J,J,J,L &M &M r   r   r   r   r   test_stack_errorsr      s1    ) M M N N N N Nr   c                     t          t          j        d                    t          dd          } t          j        j        | j                  rJ t          t          j        d                    t          dd          } t          j        j        | j                  sJ t          t          j        d          j                  t          dd          } t          t          fd           d S )Nr      )r   r   TcopyFc                  (    t           dd          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AHah/////!""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 Jr   