
    h                     :    S SK Jr  S SKJrJrJr   " S S\5      rg)    )Basic)PSpace_symbol_converterRandomMatrixSymbolc                   8    \ rS rSrSrSS jr\S 5       rS rSr	g)	RandomMatrixPSpace   z}
Represents probability space for
random matrices. It contains the mechanics
for handling the API calls for random matrices.
Nc                     [        U5      nU(       a  [        R                  " XU5      $ [        R                  " X5      $ N)r   r   __new__)clssymmodels      Q/var/www/html/shao/venv/lib/python3.13/site-packages/sympy/stats/random_matrix.pyr   RandomMatrixPSpace.__new__
   s/    $==511==**    c                 B     U R                   S   $ ! [         a     g f = f)N   )args
IndexError)selfs    r   r   RandomMatrixPSpace.model   s'    	99Q< 		s    
c                     UR                  [        5      n[        U5      S:  d  [        U[        5      (       d  [	        S5      eU R
                  R                  U5      $ )N   zoCurrently, no algorithm has been implemented to handle general expressions containing multiple random matrices.)atomsr   len
isinstanceNotImplementedErrorr   density)r   exprr   rmss       r   compute_density"RandomMatrixPSpace.compute_density   sR    jj+,s8a<
41C D D% '0 1 1 zz!!$''r    r   )
__name__
__module____qualname____firstlineno____doc__r   propertyr   r"   __static_attributes__r$   r   r   r   r      s%    
+  (r   r   N)sympy.core.basicr   sympy.stats.rvr   r   r   r   r$   r   r   <module>r.      s    " H H( (r   