1j: d dl Z d dlZd dlZd dlmZmZmZmZ G d d Z G d d Z
G d d ZdS ) N)assert_
assert_raisesassert_array_equalHAS_REFCOUNTc , e Zd Zd Zd Zd Zd Zd ZdS )TestTakec ddgddgg}ddgddgg}g d }d
dg}t j dt j t j t t j t j d
t j g}dt dddddddd }t
t t j dg f}|D ]}t j t j |t j
r|n|| } t | j
}
|D ]!}|j dk r*d|j z |
d _ d|j z |
d _ |D ]}|D ]}
|| |
}|t u r@|j dk r5| d|
t# t | j ||d Y|j dk rE| d|
| ||d }t' ||
| | ||d }t) |j d|j z k #d S )N 1 2 3 4raisewrapclipr dtype)r
r
)r r
) i2r )r )modeaxis)npemptyintptuple
IndexErrorintobjectr array
issubdtypenumberlistTcopysizeshapeputr taker r )selfaa_strmodesindicesindex_arraysreal_indicestypesttatresultindex_arrayr index
real_indexress x/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib64/python3.11/site-packages/numpy/core/tests/test_item_selection.pytest_simplezTestTake.test_simple s VaVd|,)))q'"'222888rw7779 '(J!7!7%&1
%&1
/ / VRX}o666 K KAr}Q ::E!!QOOOB2499;;''G+
K
K#q(('+k.?'?GAJ$'+k.?'?GAJ$!
K
KD!( K K%1$%7%>
%338HA8M8M'OOAu555)*bg{/3!= = = = =(-22'OOAu555"$''+Dq'"I"IC.sGJ4GHHHH"$''+Dq'"I"IC#CI8I1I$IJJJJK
K
K K K c d t d D }dD ]}t j | }t j g d }| ||d d | ~t r&t t
d |D t j |dz d d d }| ||d d | ~t r&t t
d |D d S )
Nc * g | ]}t S )r# ).0is r=