+
    i                        ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
 ^ RIHtHt ^ RIHtHt ^ RIHtHtHt ]	! ^^],          .^],           ^..4      t]	! ^],          ^.^],          ^..4      t]! R	4      w  tttttttt]! R
]]4      t]! R]]4      t ]! R]]4      t!]! R]]4      t"]! R]]4      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 t0R t1R t2R t3R t4R  t5R!# )"    )Mod)I)symbols)floor)Matrixeye)MatrixSymbolIdentity)dettrace)KroneckerProductkronecker_productcombine_kroneckerzi,j,k,n,m,o,p,xZWABCc                     \        \        \        \        4      \        4      '       g   Q h\        \        \        4      P	                  \        \
        4      \        \
        \        4      8X  g   Q h\        \        \
        4      P                  \        \        ,          \        \        ,          38X  g   Q h\        \        \
        4      \        \        ) \
        4      ,           P                  '       g   Q h\        \        \        4      \        \        P                  \        P                  4      ,          P                  '       g   Q hR # N)
isinstancer   r   r   subsr   shapenmkis_ZeroMatrixr   r   r   is_Identity     m/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/matrices/expressions/tests/test_kronecker.pytest_KroneckerProductr"      s    &q!,.>????Aq!&&q!,0@A0FFFFAq!''AaC1:555Q"%5qb!%<<KKKKKQ"%5acc133%??LLLLLr    c                      \        \        \        4      \        \        4      4      \        \        \        ,          4      8X  g   Q h\        \	        ^4      \	        ^4      4      \	        ^4      8X  g   Q hR#    N)r   r
   r   r   r   r   r    r!   test_KroneckerProduct_identityr&   !   sH    HQK!5!A#FFFCFCF+s1v555r    c                  ~   \        R ^^4      p \        R^^4      p\        W4      pVP                  R8X  g   Q hVP                  4       \	        V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          .V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          .V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          .V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          V R,          VR,          ,          ..4      8X  g   Q hR# )XYN)   r*   )r   r   )r      )r+   r   )r+   r+   )r	   r   r   as_explicitr   )r(   r)   kps      r!   test_KroneckerProduct_explicitr.   &   sO   S!QAS!QA	!	B88v>>vtWQtW_agagoqwqw$$PtWQtW_agagoqwqw$$PtWQtW_agagoqwqw$$PtWQtW_agagoqwqw$$P		
    r    c                     \        \        \        ,          \        4      P	                  4       \        ) \        \        P	                  4       \        P	                  4       4      ,          8X  g   Q h\        \
        \        4      P	                  4       \        \
        P	                  4       \        P	                  4       4      8X  g   Q hR # r   )r   r   r   r   adjointmat1mat2r   r   r    r!   test_tensor_product_adjointr3   5   s~    AaC#++-	
AIIK556 6 6D$'//1$,,.$,,.9: : :r    c                     \        \        \        ,          \        4      P	                  4       \        ) \        \        P	                  4       \        P	                  4       4      ,          8X  g   Q h\        \
        \        4      P	                  4       \        \
        P	                  4       \        P	                  4       4      8X  g   Q hR # r   )r   r   r   r   	conjugater1   r2   r   r   r    r!   test_tensor_product_conjugater6   <   s    AaC#--/	
AKKM1;;=99: : :D$'113$..*DNN,<=> > >r    c                     \        \        \        ,          \        4      P	                  4       \        \        \        P	                  4       \        P	                  4       4      ,          8X  g   Q h\        \
        \        4      P	                  4       \        \
        P	                  4       \        P	                  4       4      8X  g   Q hR # r   )r   r   r   r   	transposer1   r2   r   r   r    r!   test_tensor_product_transposer9   C   s~    AaC#--/	
1;;=!++-
889 9 9D$'113$..*DNN,<=> > >r    c                     \        \        \        \        \        4      4      \        \        \        \        4      \        4      8X  g   Q h\        \        \        \        \        4      4      \	        \        \        \        4      8X  g   Q hR # r   )r   r   r   r   r   r   r    r!   $test_KroneckerProduct_is_associativer;   J   so    Q 1	1! #$5a$;Q?@ @ @Q 1	1! "1a+, , ,r    c                     \        \        \        ,          \        4      \        \        \        \        4      ,          8X  g   Q h\        \        \        \        ,          4      \        \        \        \        4      ,          8X  g   Q hR # r   )r   xr   r   r   r    r!   !test_KroneckerProduct_is_bilinearr>   Q   sN    QqS!$*;Aq*A(AAAAQ!$*;Aq*A(AAAAr    c                      \        \        \        4      p \        V 4      \        \        4      \        ,          \        \        4      \
        ,          ,          8X  g   Q hR # r   )r   r   r   r   r   r   r-   s    r!   !test_KroneckerProduct_determinantrA   V   s5    	1a	 Br7c!fai#a&!)++++r    c                      \        \        \        4      p \        V 4      \        \        4      \        \        4      ,          8X  g   Q hR # r   )r   r   r   r   r@   s    r!   test_KroneckerProduct_tracerC   [   s-    	1a	 B9aq))))r    c                      \        \        \        4      \        \        \        4      8w  g   Q h\        \        \        4      P                  R J g   Q hR# )FN)r   r   r   is_commutativer   r    r!   &test_KroneckerProduct_isnt_commutativerF   `   s:    Aq!%5a%;;;;Aq!00E999r    c                      \        \        \        ,          ^\        ,          4      \        ^,          \	        \        \        4      ,          8X  g   Q hR# r$   )r   r=   r   r   r   r   r    r!   /test_KroneckerProduct_extracts_commutative_partrH   e   s<    QUAE*a	/
Q"/# # # #r    c                      \        \        \        4      p V P                  4       \        \        P                  4       \        P                  4       4      8X  g   Q hR # r   )r   r   r   inverser@   s    r!   test_KroneckerProduct_inverserK   j   s6    	1a	 B::<,QYY[!))+FFFFr    c                      \        \        \        4      p \        \        \        4      p\        W,          4      \        \        \        ,          \        \        ,          4      8X  g   Q hR # r   )r   r   r   r   r   r   )kp1kp2s     r!   !test_KroneckerProduct_combine_addrO   o   s?    
Aq
!C
Aq
!CSW%):1Q3!)DDDDr    c                     \        R \        \        4      p \        R\        \        4      p\        \        V 4      p\        \
        V4      p\        W#,           4      \        \        \
        ,           W,           4      8X  g   Q hR# r(   r)   N)r	   r   r   r   r   r   r   )r(   r)   rM   rN   s       r!   !test_KroneckerProduct_combine_mulrR   u   sY    S!QAS!QA
Aq
!C
Aq
!CSW%):1Q3)DDDDr    c                  D   \        R \        \        4      p \        R\        \        4      p\        \        W4      \        ,          4      \        V \        ,          V\        ,          4      8X  g   Q h\        \        \        W4      ^,          ,          4      \        \        V ^,          V^,          4      ,          8X  g   Q h\        \        \        W4      ^,          ,          \        \
        \        4      ,          4      \        \        V ^,          \
        ,          V^,          \        ,          4      ,          8X  g   Q h\        \        \
        \        P                  4      \        ,          4      \        \
        \        P                  4      \        ,          8X  g   Q hR# rQ   )	r	   r   r   r   r=   r   r   Tr   r(   r)   s     r!   !test_KroneckerProduct_combine_powrV   }   sD   S!QAS!QA-	 %adAqD12 2 2Q!1!!7 !"" " #&'*:1a4A*F&FG G G	a#Q&'*:1a*@@BEFIYZ[]^Z^abZbdeghdhkldlImEmn n n -a5:;?OPQSTSVSV?W[\?\\\\r    c                  H   \        R \        \        4      p \        R\        \        4      p\        W,           V\        ,           4      P	                  RR7      \        W4      \        V \        4      ,           \        W4      ,           \        V\        4      ,           8X  g   Q hR# )r(   r)   T)kroneckerproductN)r	   r   r   r   expandrU   s     r!   test_KroneckerProduct_expandrZ      s|    S!QAS!QAAE1q5)00$0G!1!Q!77	!1!Q!7	88 8 8r    c            	         \        R \        \        4      p \        R\        \        4      p\        W4      P                  \        \        4      V \        \        \        \        ,          4      \        4      \        \        \        \        ,          4      \        4      3,          V\        \        \        4      \        \        \        4      3,          ,          8X  g   Q hR# )r   r   N)r	   r   r   opr   _entryijr   r   )r   r   s     r!   test_KroneckerProduct_entryra      s    S!QAS!QAA!((A.!Cac
A4FERSTURUJXYHZ4Z2[\]^abcef^gilmnpqir^r\s2ssssr    N)6sympy.core.modr   sympy.core.numbersr   sympy.core.symbolr   #sympy.functions.elementary.integersr   sympy.matrices.denser   r   sympy.matricesr	   r
   sympy.matrices.expressionsr   r   $sympy.matrices.expressions.kroneckerr   r   r   r1   r2   r_   r`   r   r   r   r\   r]   r=   r   r   r   r   r   r"   r&   r.   r3   r6   r9   r;   r>   rA   rC   rF   rH   rK   rO   rR   rV   rZ   ra   r   r    r!   <module>rj      s)      % 5 . 1 1E E
 1q5zAE1:&'AqzAE1:&' !23 1aAq!QaaaaaM6
:>>,B
,
*
:
#
G
EE
]8tr    