+
    åûjñ  ã                   ót   € ^ 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 ^RIHt  ! R R	]	4      tR
# )é    )Úcheck_assumptions)Ú	fuzzy_and)Ú_sympify)Ú
MatrixKind)ÚSetÚSetKind)Ú
NumberKind)Ú
MatrixExprc                   ój   a € ] tR t^
t o RtRtR t]R 4       t]R 4       t	R t
]R 4       tR tR	tV tR
# )Ú	MatrixSeta?  
MatrixSet represents the set of matrices with ``shape = (n, m)`` over the
given set.

Examples
========

>>> from sympy.matrices import MatrixSet
>>> from sympy import S, I, Matrix
>>> M = MatrixSet(2, 2, set=S.Reals)
>>> X = Matrix([[1, 2], [3, 4]])
>>> X in M
True
>>> X = Matrix([[1, 2], [I, 4]])
>>> X in M
False

Fc                ó  € \        V4      \        V4      \        V4      r2pV P                  V4       V P                  V4       \        V\        4      '       g   \	        R P                  V4      4      h\        P                  ! WW#4      # )z {} should be an instance of Set.)r   Ú
_check_dimÚ
isinstancer   Ú	TypeErrorÚformatÚ__new__)ÚclsÚnÚmÚsets   &&&&Ú[C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\matrices\expressions\sets.pyr   ÚMatrixSet.__new__   sf   € Ü˜Q“K¤¨!£¬h°s«mˆcˆØ�‰�qÔØ�‰�qÔÜ˜#œs×#Ò#ÜÐ>×EÑEÀcÓJÓKÐKÜ�{Š{˜3 1Ó*Ð*ó    c                ó(   € V P                   R ,          # ):Né   N©Úargs©Úselfs   &r   ÚshapeÚMatrixSet.shape'   s   € à�y‰y˜�}Ðr   c                ó(   € V P                   ^,          # )r   r   r   s   &r   r   ÚMatrixSet.set+   s   € à�y‰y˜�|Ðr   c                ó°  a € \        V\        4      '       g   \        R P                  V4      4      hVP                  S P                  8w  dw   \
        ;QJ d7    R VP                  S P                  ,            4       F  '       g   K   RM,	  RM(! R VP                  S P                  ,            4       4      pV'       d   R# R# \        V 3R lV 4       4      # )z'{} should be an instance of MatrixExpr.c              3   óL   "  € T F  p\        V4      P                  x € K  	  R # 5i©N)r   Ú	is_Symbol)Ú.0Úxs   & r   Ú	<genexpr>Ú&MatrixSet._contains.<locals>.<genexpr>3   s   é € ÐWÑ>V¸œx¨›{×4Ö4Ó>Vùs   ‚"$TFNc              3   óZ   <"  € T F   pSP                   P                  V4      x € K"  	  R # 5ir&   )r   Úcontains)r(   r)   r   s   & €r   r*   r+   7   s#   øé € Ð=±u°!˜Ÿ™×*Ñ*¨1×-Ð-³uùs   ƒ(+)r   r
   r   r   r    Úanyr   )r   ÚotherÚare_symbolics   f& r   Ú	_containsÚMatrixSet._contains/   s‹   ø€ Ü˜%¤×,Ò,ÜÐE×LÑLÈUÓSÓTÐTØ�;‰;˜$Ÿ*™*Ô$ß›3ÑW¸e¿k¹kÈDÏJÉJÖ>VÓWŸ3Ÿ3š3ÑW¸e¿k¹kÈDÏJÉJÖ>VÓWÓWˆLßÙÙÜÔ=±uÓ=Ó=Ð=r   c                ó”   € VP                   '       * ;'       d    \        VRRR7      pVRJ d   \        RP                  V4      4      hR# )z2Helper function to check invalid matrix dimensionsT)ÚintegerÚnonnegativeFz?The dimension specification {} should be a nonnegative integer.N)Úis_Floatr   Ú
ValueErrorr   )r   ÚdimÚoks   && r   r   ÚMatrixSet._check_dim9   sP   € ð —‘Ô÷ 1ð 1Ô"3Ø˜¨4ô#1ˆà�‹;Üð)ß)/©°«ó6ð 6ñ r   c                ó2   € \        \        \        4      4      # r&   )r   r   r	   r   s   &r   Ú_kindÚMatrixSet._kindC   s   € Ü”z¤*Ó-Ó.Ð.r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úis_emptyr   Úpropertyr    r   r1   Úclassmethodr   r<   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r   
   sa   ø‡ € ñð$ €Hò+ð ñó ðð ñó ðò>ð ñ6ó ð6÷/ð /r   r   N)Úsympy.core.assumptionsr   Úsympy.core.logicr   Úsympy.core.sympifyr   Úsympy.matrices.kindr   Úsympy.sets.setsr   r   Úsympy.core.kindr	   Úmatexprr
   r   r>   r   r   Ú<module>rQ      s&   ðÝ 4Ý &Ý 'Ý *ß (Ý &Ý ô:/�ö :/r   