$ h d dl mZ d dlZddlmZ ddlmZ ddlm Z m
Z
ddlmZm
Z
mZ d Zd Zd
ZdS ) )
assert_raisesN )all)asarray)float64int8)concatreshapestackc ^ t t d t t d d S )Nc $ t dd S )N) r )axis)r /builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/array_api/tests/test_manipulation_functions.pyz$test_concat_errors.. s VF%>%>%> r c x t t dgt t dgt g S )Nr dtype)r r r r r r r r z$test_concat_errors.. 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 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.. s? UGQF$,G,G,G,3QF',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 )Nr )r r TcopyFc ( t dd S )Nr Fr )r
)as r r z#test_reshape_copy..$ s '!V%*H*H*H r ) r nponesr
shares_memory_arrayTr AttributeError)br# s @r test_reshape_copyr+ s A6%%%A!(33333 A6&&&A
AHah/////!""A6%%%A."H"H"H"HIIIIIr )
numpy.testingr numpyr$ r _creation_functionsr _dtypesr r _manipulation_functionsr r
r r r r+ r r r r2 s ' ' ' ' ' ' ) ) ) ) ) ) # # # # # # # # L L LN N N
J J J J Jr