
    Phd                     f    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y)    )assert_raisesN   )all)asarray)float64int8)concatreshapestackc                  H    t        t        d        t        t        d        y )Nc                      t        dd       S )N)   r   )axis)r	        |C:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\numpy/array_api/tests/test_manipulation_functions.py<lambda>z$test_concat_errors.<locals>.<lambda>   s    VF%>r   c                  \    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-4aS-H-J &Kr   r   	TypeErrorr   r   r   test_concat_errorsr      s    )>?) K Lr   c                  &    t        t        d        y )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,3QF',J,L &Mr   r   r   r   r   test_stack_errorsr      s    ) M 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       y )Nr      )r   r   TcopyFc                       t         dd      S )Nr   Fr    )r
   )as   r   r   z#test_reshape_copy.<locals>.<lambda>$   s    '!V%*Hr   )	r   nponesr
   shares_memory_arrayTr   AttributeError)br#   s    @r   test_reshape_copyr+      s     A6%A!((333 A6&AAHHahh///!!"A6%A."HIr   )numpy.testingr   numpyr$    r   _creation_functionsr   _dtypesr   r   _manipulation_functionsr	   r
   r   r   r   r+   r   r   r   <module>r2      s0    '   ) # LN
Jr   