+
     þÎjW  ã                   ó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   &€€ÚN/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_numbers.pyÚimplÚgen_view.<locals>.impl   s   ø€ Ù�‹t�y‰y˜‹|Ðó    © )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 \Ó?Ó@�Ü—x’x ×'Ò'à×$Ñ$¡T¨%£[±+¸fÓ2EÔFà×$Ñ$¡T¨%£[Ø%)§\¡\°%Ó%8ö:ð —O‘O¤B§H¢H©T°%«[Ó$9Ô:à—O‘O¤B§H¢H¨T¯\©\¸%Ó-@Ó$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   € Ü—(‘(œBŸG™GÐ$ˆàœŸ™ 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   € Ü—)‘)œRŸX™X¤r§z¡zÐ2ˆàœŸ	™	Ð&CÐDØœŸ™ z°2´r·v±vÐ&>Ð?ØœŸ
™
Ð&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   € Ü—)‘)œRŸX™X¤r§z¡zÐ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Ø�F‰F�5ŽMr   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   ø€ Üœ˜GŸN™N¬5¯:©:×+>Ñ+>Ó?Ó@ˆä	ô	ó 
ð	ð ×Ñœ{×+Ô+¨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Ó3ˆDÙ�Œ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   € Ü—h‘h¤§¡Ð(¬2¯7©7´B·H±HÐ*=Ó>ˆ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:   € Ü—h‘h¤§¡Ð)¬B¯H©H´b·h±hÐ+?Ó@ˆ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   