+
    :iW                     Z    ^ RI t^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 R t
 ! R R]	4      tR# )	    N)njit)types)TypingError)TestCasec                    a a V V3R  lpV# )c                 2   < S! V 4      P                  S4      # Nview)xabs   &V/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_numbers.pyimplgen_view.<locals>.impl   s    tyy|     )r   r   r   s   ff r   gen_viewr      s    Kr   c                   T   a  ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
tV tR# )TestViewIntFloatz/This tests the 'view' method on NumPy scalars. c           	        V F  w  r4p\        W%4       F  w  rg\        \        WF4      4      p\        P                  ! V4      '       gH   V P                  V! V4      V! V4      4       V P                  V! V4      VP                  V4      4       K|  V P                  \        P                  ! V! V4      4      4       V P                  \        P                  ! VP                  V4      4      4       K  	  K  	  R # r	   )zipr   r   npisnanassertEqualpy_func
assertTrue)	selfinputsdtypesvalueinitial_typeexpectedtarget_typeresultr   s	   &&&      r   
do_testingTestViewIntFloat.do_testing   s    -3)E'*6'<#H\?@xx''$$T%[+f2EF$$T%[%)\\%%8: OOBHHT%[$9:OOBHHT\\%-@$AB (= .4r   c                    \         P                  \         P                  3p^\         P                  R3R\         P                  R33pV P                  W!4       R# )   N)r)   r)   )   r*   )r   uint8int8r&   r   r    r   s   &  r   test_8_bitsTestViewIntFloat.test_8_bits$   sC    ((BGG$V,Y/1'r   c                   \         P                  \         P                  \         P                  3p^\         P                  R3R\         P                  RR\         P                  33R\         P                  R33pV P                  W!4       R# )r)   l          ?N)r)   r)   g      6r*   )  ?r3   r2   )r   uint32int32float32nanr&   r.   s   &  r   test_32_bitsTestViewIntFloat.test_32_bits+   sg    ))RXXrzz2		&CDz2rvv&>?

&CDF 	'r   c                   \         P                  \         P                  \         P                  3p^\         P                  R3R\         P                  RR\         P                  33R\         P                  R33pV P                  W!4       R# )r)   l    r2   N)r)   r)   g       r*   )          r;   r2   )r   uint64int64float64r7   r&   r.   s   &  r   test_64_bitsTestViewIntFloat.test_64_bits3   sj    ))RXXrzz2		n5';R&HI

 ', - 	'r   c                ^  a \        \        R P                  \        P                  P
                  4      4      o\        V3R l4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  R\        XP                  4      4       R#   + '       g   i     L7; i)zint{}c                  .   < ^p V P                  S4       R# )r)   Nr
   )r   inttys    r   myview=TestViewIntFloat.test_python_scalar_exception.<locals>.myviewA   s    AFF5Mr   Nz\'view' can only be called on NumPy dtypes, try wrapping the variable 'a' with 'np.<dtype>()')getattrr   formatr   intpbitwidthr   assertRaisesr   assertInstr	exception)r   rD   erC   s   &  @r   test_python_scalar_exception-TestViewIntFloat.test_python_scalar_exception>   sz    GNN5::+>+>?@		 
	 {++qH , J!++&	( ,+s   %BB,	c           	        V P                  \        4      ;_uu_ 4       p\        \        V^ ,          V^,          4      4      pV! ^4       RRR4       V P	                  R\        XP                  4      4       R#   + '       g   i     L7; i)r   NzOChanging the dtype of a 0d array is only supported if the itemsize is unchanged)rJ   r   r   r   rK   rL   rM   )r   pairrN   r   s   &&  r   do_testing_exceptions&TestViewIntFloat.do_testing_exceptionsL   sb    {++qa$q'23DG , 	 5!++&	( ,+s   ,A99B		c                    \         P                  \         P                  3\         P                  \         P                  33 F  pV P                  V4       K  	  R # r	   )r   r5   r-   rS   r   rR   s   & r   test_exceptions32"TestViewIntFloat.test_exceptions32T   s9    hh(277BHH*=>D&&t, ?r   c                    \         P                  \         P                  3\         P                  \         P                  33 F  pV P                  V4       K  	  R # r	   )r   r5   r=   rS   rV   s   & r   test_exceptions64"TestViewIntFloat.test_exceptions64X   s:    hh)BHHbhh+?@D&&t, Ar   r   N)__name__
__module____qualname____firstlineno____doc__r&   r/   r8   r?   rO   rS   rW   rZ   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s6     :C ((	(((-- -r   r   )numpyr   numbar   
numba.corer   numba.core.errorsr   numba.tests.supportr   r   r   r   r   r   <module>ri      s)       ) (I-x I-r   