+
    ;ic                        ^ RI t^ RIHtHtHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIt]P                  t]P                  ! ^P]R7      P                  ^^
4      t]P#                  4       t]P#                  RR7      t]P                  ! R]R7      P                  ^^4      R,          tR	 tR
 tR tR t].t ! R R]4      t ! R R]4      t]R8X  d   ]P:                  ! 4        R# R# )    N)float32jitnjit)	Vectorize)TypingError)TestCase)dtypeF)orderc                     W,           # N )abs   &&]/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/npyufunc/test_ufunc.pyaddr      s	    5L    c                 .    W,           V,           V,           # r   r   )r   r   cds   &&&&r   add_multiple_argsr      s    519q=r   c                     R p\        V P                  ^ ,          4       F  pW V,          W,          ,          ,          pK!  	  V# )g        )rangeshape)r   r   resultis   &&  r   
gufunc_addr      s7    F1771:A$+  Mr   c                 `    \        VP                  4       F  pV P                  V4      pK  	  V# r   )r   ndimreduce)ufuncargr   s   && r   ufunc_reducer#   !   s'    388_ll3 Jr   c                   J   a  ] tR t^0t o R tR tR tR tR tR t	R t
RtV tR	# )

TestUFuncsc                D   V! \         .VO5!  pVP                  \        \        \        4      4       VP                  4       pWP                  3pV P	                  V! W#4      W#,           VR7       V P	                  \        Wb4      \        P                  ! V4      VR7       V P	                  VP                  V4      \        P                   P                  V4      VR7       V P	                  VP                  W#4      \        P                   P                  W#4      VR7       R# )zTest ufunc attributesmsgN)
r   r   build_ufuncr   assertPreciseEqualr#   npsum
accumulateouter)selfclsr   r   args
vectorizerr!   infos   &&&&*   r   _test_ufunc_attributes!TestUFuncs._test_ufunc_attributes2   s    _t_
ww01&&(VV}aQU=U 6q	tL 0 0 3RVV5F5Fq5I$( 	  	*A 1266<<3E4Pr   c                   V! \         4      pVP                  \        \        \        \        \        4      4       VP                  4       pWP                  3pV P                  V! W#WE4      W#,           V,           V,           VR7       R# )zTest multiple argsr'   N)r   r   r   r)   r   r*   )	r/   r0   r   r   r   r   r2   r!   r3   s	   &&&&&&   r   _test_broadcastingTestUFuncs._test_broadcasting?   sc    *+
ww'BC&&(WW~aA 11519q=dKr   c           	     r   \          F,  pV P                  V\        ^ ,          \        ^ ,          4       K.  	  \          F  pV P                  V\        \        4       K   	  \          FN  pV P                  V\        R\        P
                  R3,          \        \        P
                  RR3,          4       KP  	  R# r   NNNN)vectorizersr4   r   r   r+   newaxisr/   vs   & r   test_ufunc_attributes TestUFuncs.test_ufunc_attributesH   s    A''1Q416 A''1a0 A''1Q

A-=+>()"**a*:(;= r   c                *   \          FD  pV P                  V\        ^ ,          \        ^ ,          \        ^ ,          \
        ^ ,          4       KF  	  \          F(  pV P                  V\        \        \        \
        4       K*  	  \          F  pV P                  V\        R\        P                  R3,          \        \        P                  RR3,          \        R\        P                  R3,          \
        \        P                  RR3,          4       K  	  R# r:   )r<   r7   r   r   r   r   r+   r=   r>   s   & r   test_broadcastingTestUFuncs.test_broadcastingQ   s    A##AqtQqT1Q41> A##Aq!Q2 A##AqBJJ)9':Abjj!Q>N<O$%aQ&6$72::q!;K9LN r   c                f   \          F  pV! \        4      pVP                  \        \        \        4      4       VP                  4       p\        \
        P                  R \
        P                  \
        P                  R 3,          pV P                  V! \        V4      \        V,           4       K  	  R# )r;   N)	r<   r   r   r)   r   r+   r=   r*   r   )r/   r?   r2   r!   broadcasting_bs   &    r   test_implicit_broadcasting%TestUFuncs.test_implicit_broadcastingZ   sv    A3JNN77G45**,Erzz1bjj"**aGHN##E!^$<$%$68 r   c                   \         P                  ! ^
4      pRVP                  n        . pRpVP	                  \        RR7      \        V34       VP	                  \        RR7      \        R34       V F^  w  rEpR pV P                  V4      ;_uu_ 4       pV! V4      ! V4       RRR4       V P                  V\        XP                  4      4       K`  	  R#   + '       g   i     L;; i)	
   Fz<ufunc 'sin' called with an explicit output that is read-onlyT)nopython)forceobjzoutput array is read-onlyc                     \         P                  ! V P                  V P                  4      p\         P                  ! W4       R # r   )r+   onesr   r	   sin)xr   s   & r   testBTestUFuncs.test_ufunc_exception_on_write_to_readonly.<locals>.testo   s%    GGAGGQWW-qr   N)r+   rN   flags	writeableappendr   r   
ValueErrorassertRaisesassertInstr	exception)	r/   ztestsexpectdecexcr(   rQ   raisess	   &        r   )test_ufunc_exception_on_write_to_readonly4TestUFuncs.test_ufunc_exception_on_write_to_readonlyd   s    GGBK!Oc4(+v>?c4(*13 	4 #MCc ""3''6D	! ( MM#s6#3#345 #
 ('s   CC&c                   \         R  4       pV P                  V! \        P                  ! ^4      ^4      \        P                  ! ^^4      P	                  \        P
                  4      4       V P                  \        4      ;_uu_ 4       pV! \        P                  ! ^4      ^4       RRR4       RpV P                  V\        XP                  4      4       R#   + '       g   i     L9; i)c                 n    V^8  d   RpM\         P                  ! ^4      p\         P                  ! W4      # )   N)r+   rN   r   )rP   yr[   s   && r   inner5TestUFuncs.test_optional_type_handling.<locals>.inner{   s)    1uGGAJ66!<r   Nz(expected array(float64, 1d, C), got None)r   r*   r+   arangeastypefloat64rW   	TypeErrorrX   rY   rZ   )r/   rg   r`   r(   s   &   r   test_optional_type_handling&TestUFuncs.test_optional_type_handlingx   s     
	  
	  	biilA 6 "		!Q 6 6rzz B	D y))V "))A," *
 9c3v//01 *)s   	CC(	r   N)__name__
__module____qualname____firstlineno__r4   r7   r@   rC   rG   ra   rm   __static_attributes____classdictcell____classdict__s   @r   r%   r%   0   s0     QL=N86(2 2r   r%   c                   ,   a  ] tR t^t o R tR tRtV tR# )TestUFuncsMiscc                    \         R  4       p\        P                  \        P                  3 F5  pV! ^4      pVP	                  V4      pV! V4      pV P                  WE4       K7  	  R# )c                 .    \         P                  ! V 4      # r   )r+   exp2rP   s   &r   foo%TestUFuncsMisc.test_exp2.<locals>.foo       771:r   Nr   r+   int8uint16py_funcr*   r/   r}   tyrP   expectedgots   &     r   	test_exp2TestUFuncsMisc.test_exp2   Z    		 
	 77BII&B1A{{1~Ha&C##H2	 'r   c                    \         R  4       p\        P                  \        P                  3 F5  pV! ^4      pVP	                  V4      pV! V4      pV P                  WE4       K7  	  R# )c                 .    \         P                  ! V 4      # r   )r+   log2r|   s   &r   r}   %TestUFuncsMisc.test_log2.<locals>.foo   r   r   Nr   r   s   &     r   	test_log2TestUFuncsMisc.test_log2   r   r   r   N)ro   rp   rq   rr   r   r   rs   rt   ru   s   @r   rx   rx      s     
3
3 
3r   rx   __main__i@  )NNre   r   )numpyr+   numbar   r   r   numba.np.ufuncr   numba.core.errorsr   numba.tests.supportr   unittestr	   ri   reshaper   copyr   r   r   r   r   r   r#   r<   r%   rx   ro   mainr   r   r   <module>r      s     $ $ $ ) (  	

IIb&&q"-FFHFFFIIgU#++B3H= ]2 ]2@3X 38 zMMO r   