+
    i                         ^ RI HtHt ^ RIHtHtHtHt ^ RIH	t	H
t
HtHtHtHtHtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ]! RR	R
7      t]! R]]4      t]! R]]4      t]! R^^4      tR tR t R t!R t"R t#R# )    )Ssymbols)eyeonesMatrix
ShapeError)
Identity
MatrixExprMatrixSymbolDeterminantdetper
ZeroMatrix	Transpose	PermanentMatMul)	OneMatrix)raises)Q)refinenT)integerABCc                     \        \        \        4      \        4      '       g   Q h\        \        \        4      \        4      '       d   Q h\	        \
        R  4       \        \        ^4      4      ^8X  g   Q h\        \        ^^. RO4      4      ^8X  g   Q h\        \        \        4      ,          p \	        \        R 4       \        \        4      P                  \        J g   Q hR# )c                       \        \        4      # N)r   r        o/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/matrices/expressions/tests/test_determinant.py<lambda>test_det.<locals>.<lambda>   s    {1~r    c                  4    \        \        P                  4      # r   )r   r   Oner   r    r!   r"   r#      s    k!%%0r    N	            r'   r(   r)      r)   )
isinstancer   r   r
   r   r   r   r   r   	TypeErrorarg_s    r!   test_detr1      s    k!nk2222+a.*5555
:-.s1v;!va789R???	CF
A
901q>"""r    c                  N   \        \        \        4      4      ^8X  g   Q h\        \        \        \        4      4      ^ 8X  g   Q h\        \	        \        \        4      4      \        \	        \        \        4      4      8X  g   Q h\        \	        ^^4      4      ^8X  g   Q h\        \	        ^^4      4      ^ 8X  g   Q h\        \        \        4      4      \        \        4      8X  g   Q h\        \        \        ^4      \        ^4      4      4      P                  RR7      ^8X  g   Q hR# )r'   T)deepN)r   r	   r   r   r   r   r   r   r   r   doitr   r    r!   test_eval_determinantr5       s    x{q   z!Q A%%%yA;yA#????yA1$$$yA1$$$y|A&&&vc!fc!f-.333>!CCCr    c                     \        \        \        4      \        P                  ! \        4      4      ^8X  g   Q h\        \        \        4      \        P
                  ! \        4      4      ^ 8X  g   Q h\        \        \        4      \        P                  ! \        4      4      ^8X  g   Q h\        \        \        4      \        P                  ! \        4      4      \        \        4      8X  g   Q hR# )r'   N)r   r   r   r   
orthogonalsingularunit_triangularnormalr   r    r!   test_refiner;   *   s    #a&!,,q/*a///#a&!**Q-(A---#a&!++A./1444#a&!((1+&#a&000r    c                      \        \        4      p \        \        4      pV P                  '       g   Q hVP                  '       g   Q hW,          W,          8X  g   Q hR # r   )r   r   r   is_commutative)det_adet_bs     r!   test_commutativer@   1   sJ    NENE=EM)))r    c                     \        \        \        4      \        4      '       g   Q h\        \        \        4      \        4      '       d   Q h\        \        \        4      \        4      '       g   Q h\        \        ^^4      4      P                  4       ^8X  g   Q h\        \        \        4      ,          p \        \        ^^. RO4      4      ^g8X  g   Q h\        \        R 4       \        \        4      P                  \        J g   Q hR# )r(   c                  4    \        \        P                  4      # r   )r   r   r%   r   r    r!   r"    test_permanent.<locals>.<lambda>@   s    i.r    Nr&   )r,   r   r   r
   r   r   r4   r   r   r   r-   r.   r/   s    r!   test_permanentrD   9   s    ilI....)A,
3333ilI....T!QZ %%'1,,,	CF
Ava789S@@@
9./Q<q   r    N)$
sympy.corer   r   sympy.matricesr   r   r   r   sympy.matrices.expressionsr	   r
   r   r   r   r   r   r   r   r   "sympy.matrices.expressions.specialr   sympy.testing.pytestr   sympy.assumptions.askr   sympy.assumptions.refiner   r   r   r   r   r1   r5   r;   r@   rD   r   r    r!   <module>rL      s{    ! 8 8  
 9 ' # +Caaa
#D1*!r    