+
    LV-j_  ã                   óz   € R t . t^ RIt^RIHtHt  ! R R]P                  P                  4      t	^RI
Ht RR ltR# )zz
Matrix square root for general matrices and for upper triangular matrices.

This module exists to avoid cyclic imports.

N)ÚztrsylÚdtrsylc                   ó   € ] tR t^tRtR# )Ú
SqrtmError© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    Úm/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/scipy/linalg/_matfuncs_sqrtm.pyr   r      s   † Ûr   r   )Úwithin_block_loopc           	     óÖ  € \         P                  ! V 4      p\         P                  ! V 4      ;'       d    \         P                  ! VRR7      ^ 8¬  pV'       gO   \         P                  ! V \         P
                  RR7      p \         P                  ! V\         P
                  R7      pMM\         P                  ! V \         P                  RR7      p \         P                  ! V\         P                  R7      p\         P                  ! \         P                  ! V4      4      pV P                  w   p\        WQ,          ^4      p\        WV4      w  rxV^,           p	Wh,
          p
W§,          W‰,          ,           V8w  d   \        R4      h. p^ pW§3W‰33 F8  w  rÞ\        V4       F$  pVP                  WÌV,           34       WÎ,          pK&  	  K:  	   \        W@W¶4       \        T4       Fß  pTT,          w  pp\        T^,
          RR4       F¸  pY¿,          w  ppT TT1TT13,          pTT,
          ^8”  d3   TTTT1TT13,          P%                  TTT1TT13,          4      ,
          pTTT1TT13,          pTTT1TT13,          pT'       d   \'        TTT4      w  pppM\)        TTT4      w  pppTT,          TTT1TT13&   Kº  	  Ká  	  T#   \         d   p\!        TP"                  !  ThRp?ii ; i)	a�  
Matrix square root of an upper triangular matrix.

This is a helper function for `sqrtm` and `logm`.

Parameters
----------
T : (N, N) array_like upper triangular
    Matrix whose square root to evaluate
blocksize : int, optional
    If the blocksize is not degenerate with respect to the
    size of the input array, then use a blocked algorithm. (Default: 64)

Returns
-------
sqrtm : (N, N) ndarray
    Value of the sqrt function at `T`

References
----------
.. [1] Edvin Deadman, Nicholas J. Higham, Rui Ralha (2013)
       "Blocked Schur Algorithms for Computing the Matrix Square Root,
       Lecture Notes in Computer Science, 7782. pp. 171-182.

g        )ÚinitialÚC)ÚdtypeÚorder)r   zinternal inconsistencyNéÿÿÿÿ)ÚnpÚdiagÚ	isrealobjÚminÚasarrayÚ
complex128Úfloat64ÚsqrtÚshapeÚmaxÚdivmodÚ	ExceptionÚrangeÚappendr   ÚRuntimeErrorr   ÚargsÚdotr   r   )ÚTÚ	blocksizeÚT_diagÚkeep_it_realÚRÚnÚnblocksÚbsmallÚnlargeÚblargeÚnsmallÚstart_stop_pairsÚstartÚcountÚsizeÚiÚeÚjÚjstartÚjstopÚistartÚistopÚSÚRiiÚRjjÚxÚscaleÚinfos   &&                          r   Ú_sqrtm_triurB      s¥  € ô4 �WŠW�Q‹Z€FÜ—<’< “?×FÐF¤r§v¢v¨f¸bÔ'AÀQÑ'F€L÷ Ü�JŠJ�q¤§¡°SÔ9ˆÜ—’˜F¬"¯-©-Ô8‰ä�JŠJ�q¤§
¡
°#Ô6ˆÜ—’˜F¬"¯*©*Ô5ˆä
�Š”—’˜“Ó €Að �7‰7�D€A€qÜ�!•. !Ó$€Gô ˜AÓ'�N€FØ�a�Z€FØÕ€FØ…˜�Õ(¨AÔ-ÜÐ0Ó1Ð1ð ÐØ€EØÐ(¨6Ð*:Ó;‰ˆÜ�u–ˆAØ×#Ñ# U°D­LÐ$9Ô:Ø�MŠEó ñ <ð)Ü˜!Ð 0Ô:ô
 �7Ž^ˆØ(¨Õ+‰ˆ�Ü�q˜•s˜B Ö#ˆAØ,Õ/‰MˆF�EØ�&˜�,  u Ð,Õ-ˆAØ�1�u�qŒyØ˜˜& ˜,¨¨f¨Ð4Õ5×9Ñ9¸!¸EÀ&¸LØ<BÀ5¸Lð=Iõ ;Jó Kõ K�ð �F˜5�L &¨ ,Ð.Õ/ˆCØ�F˜5�L &¨ ,Ð.Õ/ˆCßÜ!'¨¨S°!Ó!4‘��5™$ä!'¨¨S°!Ó!4‘��5˜$Ø,-°­IˆAˆf�Uˆl˜F 5˜LÐ(Ó)ó! $ñ ð* €Høô3 ô )Ü˜!Ÿ&™&Ñ! qÐ(ûð)ús   ÇK ËK(ËK#Ë#K()é@   )Ú__doc__Ú__all__Únumpyr   Úlapackr   r   ÚlinalgÚLinAlgErrorr   Ú_matfuncs_sqrtm_triur   rB   r   r   r   Ú<module>rK      s:   ðñð €ã ÷ #ô	�—‘×&Ñ&ô 	õ 4öWr   