+
    i                         ^ RI Ht ^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
 R tR tR tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR# )    )raises)S)ZZQQ)DomainScalar)DomainMatrixc                  J    \        \        R  4       \        \        R 4       R# )c                  4    \        \        ^4      \        4      #    )r   r   r        j/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/polys/matrices/tests/test_domainscalar.py<lambda>+test_DomainScalar___new__.<locals>.<lambda>
   s    l2a5"5r   c                  ,    \        \        ^4      ^4      # r   )r   r   r   r   r   r   r      s    l2a5!4r   N)r   	TypeErrorr   r   r   test_DomainScalar___new__r   	   s    
956
945r   c                      \        \        ^4      \        4      p V P                  \        ^4      \        4      pV\        \        ^4      \        4      8X  g   Q hR# r   N)r   r   newABs     r   test_DomainScalar_newr      s?    RUBA	beRARUB''''r   c                  \    \        \        ^4      \        4      p \        V 4      R9   g   Q hR# )r   N>   1mpz(1))r   r   reprr   s    r   test_DomainScalar_reprr!      s$    RUBA7o%%%r   c                      \        ^4      p \        P                  ! V 4      pV\        \        ^4      \        4      8X  g   Q hR# r   )r   r   
from_sympyr   )exprr   s     r   test_DomainScalar_from_sympyr%      s4    Q4D%ARUB''''r   c                      \        \        ^4      \        4      p V P                  4       pVP                  '       d   V^8X  g   Q hR# r   )r   r   to_sympy
is_Integer)r   r$   s     r   test_DomainScalar_to_sympyr)      s4    RUBA::<D???tqy((yr   c                      \        \        ^4      \        4      p V P                  \        4      pV\        \        ^4      \        4      8X  g   Q hR# r   )r   r   	to_domainr   r   s     r   test_DomainScalar_to_domainr,   %   s8    RUBA	BARUB''''r   c                      \        \        ^4      \        4      p V P                  \        4      pV\        \        ^4      \        4      8X  g   Q hR# r   )r   r   
convert_tor   r   s     r   test_DomainScalar_convert_tor/   +   s9    RUBA	RARUB''''r   c                      \        \        ^4      \        4      p \        \        ^4      \        4      pV P                  V4      w  rV P                  VP                  u;8X  d   \        8X  g   Q h Q hR# r   )r   r   r   unifydomainr   s     r   test_DomainScalar_unifyr3   1   sR    RUBARUBA771:DA88qxx%2%%%%%r   c                     a \        \        ^4      \        4      o\        \        ^4      \        4      p SV ,           \        \        ^4      \        4      8X  g   Q h\        \        V3R l4       R# )r   c                     < S R ,           # g      ?r   r    s   r   r   'test_DomainScalar_add.<locals>.<lambda>=   	    a#gr   Nr   r   r   r   r   r   r   s    @r   test_DomainScalar_addr;   8   sJ    RUBARUBAq5LA++++
9o&r   c                     a \        \        ^4      \        4      o\        \        ^4      \        4      p SV ,
          \        \        R4      \        4      8X  g   Q h\        \        V3R l4       R# )r   c                     < S R ,
          # r6   r   r    s   r   r   'test_DomainScalar_sub.<locals>.<lambda>D   r8   r   Nr9   r:   s    @r   test_DomainScalar_subr@   ?   sJ    RUBARUBAq5LB,,,,
9o&r   c                    a \        \        ^4      \        4      o\        \        ^4      \        4      p \        \        ^4      \        ^4      .\        ^4      \        ^4      ..R\        4      pSV ,          \        \        ^4      \        4      8X  g   Q hSV,          V8X  g   Q hV ^,          \        \        ^4      \        4      8X  g   Q h\	        \
        V3R l4       R# )r   c                     < S R ,          # r6   r   r    s   r   r   'test_DomainScalar_mul.<locals>.<lambda>N   r8   r   N)   rD   )r   r   r   r   r   r   )r   dmr   s     @r   test_DomainScalar_mulrF   F   s    RUBARUBA	1r!u~1r!u~6	CBq5LA++++r6R<<q5LA++++
9o&r   c                  d  a \        \        R4      \        4      o\        \        ^4      \        4      p SV ,          \        \        R^4      \        4      8X  g   Q h\        \        ^4      \        4      pSV,          \        \        R4      \        4      8X  g   Q h\        \        V3R l4       R# )   c                     < S R ,          # r6   r   r    s   r   r   ,test_DomainScalar_floordiv.<locals>.<lambda>X   s	    a3hr   Nr9   r   Cr   s     @r   test_DomainScalar_floordivrO   Q   sz    RVR ARUBA6\"R)R0000RUBA6\"R&"----
9&'r   c                  b  a \        \        ^4      \        4      o\        \        ^4      \        4      p SV ,          \        \        ^ 4      \        4      8X  g   Q h\        \        ^4      \        4      pSV,          \        \        ^4      \        4      8X  g   Q h\        \        V3R l4       R# )rH   c                     < S R ,          # r6   r   r    s   r   r   'test_DomainScalar_mod.<locals>.<lambda>b   r8   r   Nr9   rM   s     @r   test_DomainScalar_modrS   [   sw    RUBARUBAq5LA++++RUBAq5LA++++
9o&r   c                    a \        \        ^4      \        4      o\        \        ^4      \        4      p \        SV 4      \        \        ^^4      \        4      \        \        ^ 4      \        4      38X  g   Q h\        \        ^4      \        4      p\        SV4      \        \        ^4      \        4      \        \        ^4      \        4      38X  g   Q h\	        \
        V3R l4       R# )rH   c                     < \        S R 4      # r6   )divmodr    s   r   r   *test_DomainScalar_divmod.<locals>.<lambda>l   s    fQnr   N)r   r   r   rV   r   r   rM   s     @r   test_DomainScalar_divmodrX   e   s    RUBARUBA!Q<LAq26RUB8OPPPPRUBA!Q<LA3\"Q%5LMMMM
9,-r   c                     a \        \        R4      \        4      oS^,          p V \        \        ^4      \        4      8X  g   Q h\        \        V3R l4       R# )rH   c                     < S R ,          # r6   r   r    s   r   r   'test_DomainScalar_pow.<locals>.<lambda>t   s	    a#hr   NrK   )r   r   r   r   r:   s    @r   test_DomainScalar_powr\   o   s@    RVR A	AARVR((((
9&'r   c                  ~    \        \        ^4      \        4      p \        \        ^4      \        4      pV 5V8X  g   Q hR# )rD   Nr   r   r   s     r   test_DomainScalar_posr_   w   s/    RUBARUBAB!GOGr   c                  ~    \        \        ^4      \        4      p \        \        R4      \        4      pV ) V8X  g   Q hR# )rD   Nr^   r   s     r   test_DomainScalar_negrb   }   s/    RUBARVR AB!GOGr   c                      \        \        ^4      \        4      p W 8X  g   Q h\        \        R4      \        4      pW8w  g   Q h\        \        ^4      \        4      pW8w  g   Q h^.pW8w  g   Q hR# )rD   NrK   )r   r   r   )r   r   rN   Ds       r   test_DomainScalar_eqre      s]    RUBA6M6RVR A6M6RUBA6M6	
A6M6r   c                      \        \        ^ 4      \        4      p V P                  4       R8X  g   Q h\        \        ^4      \        4      pVP                  4       R8X  g   Q hR# )r   TFN)r   r   is_zeror   s     r   test_DomainScalar_isZerorh      sJ    RUBA99;$RUBA99;%r   c                      \        \        ^4      \        4      p V P                  4       R8X  g   Q h\        \        ^ 4      \        4      pVP                  4       R8X  g   Q hR# )r   TFN)r   r   is_oner   s     r   test_DomainScalar_isOnerk      sJ    RUBA88:RUBA88:r   N)sympy.testing.pytestr   sympy.core.symbolr   sympy.polysr   r   !sympy.polys.matrices.domainscalarr   !sympy.polys.matrices.domainmatrixr   r   r   r!   r%   r)   r,   r/   r3   r;   r@   rF   rO   rS   rX   r\   r_   rb   re   rh   rk   r   r   r   <module>rq      sx    '   : :6
(&
()((&'''('.( r   