phddlmZddlmZddlmZmZddlmZmZddl m Z m Z m Z m Z dZdZd Zd S) )getfullargspec) assert_raises)asarray_elementwise_functions)bitwise_left_shiftbitwise_right_shift)_dtype_categories_boolean_dtypes_floating_dtypes_integer_dtypescDtt|jSN)lenrargs)funcs /builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/array_api/tests/test_elementwise_functions.pynargsrs ~d##( ) ))c iddddddddddddd dd d d dd dddddddddddddddiddddddddddddd dd!dd"dd#dd$dd%dd&dd'dd(dd)dd*did+d d,dd-dd.dd/d0d1d0d2d0d3d0d4dd5dd6dd7dd8dd9dd:dd;dd}|D]|D]\}}t|}tt|t d?kr:|D].j|vs j|vrt tfd@/tj|vrt tfdAdS)BNabsnumericacoszfloating-pointacoshaddasinasinhatanatan2zreal floating-pointatanh bitwise_andzinteger or booleanbitwise_invertrinteger bitwise_orr bitwise_xorceilz real numericconjzcomplex floating-pointcoscoshdivideequalallexpexpm1floor floor_dividegreater greater_equalimagisfiniteisinfisnanless less_equallog logaddexplog10log1plog2 logical_andboolean logical_not logical_or logical_xormultiplynegative not_equalpositivepowreal remainderroundsign)sinsinhsqrtsquaresubtracttantanhtruncc3KtD]}td|VtD]}td|VtD]}td|VdS)N)dtypeFg?)r rr r )ds r _array_valsz(test_function_types.._array_valsVs  & &A!1%%% % % % %  * *A%q))) ) ) ) )! ( (A#Q''' ' ' ' ' ( (rrcSr)rxysrz%test_function_types..esarcSrrZ)rr[srr]z%test_function_types..hsTT!WWr)itemsr getattrrrrVr TypeError) elementwise_function_input_typesrX func_nametypesdtypesrr[r\s @@@rtest_function_typesrfs <( y<( <( !<( y <(  <( ! <(  <( &<( !<( +<( .<( i<( *<( y<( +<( !<(" (#<(<($ %<(&  '<(( ")<(* +<(, -<(. !/<(0 1<(2 3<(4 >5<(6 7<(8 (9<(: I;<(< =<(> ?<(@ A<(B nC<(D E<(<(<(F *G<(H !I<(J !K<(L  M<(N yO<(P yQ<(R iS<(T yU<(V IW<(X IY<(Z U[<(\ I]<(^ y_<(` (a<(b ^c<(d e<(f  g<(<(h    w<(<(<($|((([]] > > @ F F H H > > Iu&u-F19==DT{{a$EEAwf,,v0E0E%i1C1C1C1C1C1CDDDE7&((!)_____=== > > >rc^ttdttddS)Nc^ttddgtddgSNrU)rrrZrrr]z*test_bitwise_shift_error..ns'.w1vB@P@PQQrc^ttddgtddgSri)r rrZrrr]z*test_bitwise_shift_error..qs'/A!RAQAQRRr)r ValueErrorrZrrtest_bitwise_shift_errorrmksDQQRRrN)inspectr numpy.testingrrrrr _dtypesr r r r rrfrmrZrrrrs""""""''''''........LLLLLLLL***U>U>U>pr