§
    µ¯¸j?  ã                   ó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	   © ó    ú�/root/private/project/pallet_detection_v2/.venv/lib/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          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;   € ¥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ð 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?   € ¥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ð 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ÝÔ˜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ð Jr   