+
    Y°³j8  ã                   óv   € R t . t^ RIt^RI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)Úget_lapack_funcsc                   ó   € ] tR t^tRtR# )Ú
SqrtmError© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    Ú]/home/luca/screen-checking/.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\        RV3RR7      pV P                  w   p\        Wa,          ^4      p\        Wg4      w  r‰V^,           p
Wy,
          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TT,          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! 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   ÚtrsylÚ	preferred)Úilp64zinternal inconsistencyNéÿÿÿÿ)ÚnpÚdiagÚ	isrealobjÚminÚasarrayÚ
complex128Úfloat64Úsqrtr   ÚshapeÚmaxÚdivmodÚ	ExceptionÚrangeÚappendr   ÚRuntimeErrorr   ÚargsÚdot)ÚTÚ	blocksizeÚT_diagÚkeep_it_realÚRr   Ú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_triurD      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ä˜W q d°+Ô>€Eð �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Ø,¨QÕ/‰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Ù" 3¨¨QÓ/‰NˆAˆu�dØ,-°­IˆAˆf�Uˆl˜F 5˜LÐ(Ó)ó $ñ ð$ €Høô- ô )Ü˜!Ÿ&™&Ñ! qÐ(ûð)ús   ÇJ7 Ê7KËKËK)é@   )Ú__doc__Ú__all__Únumpyr   Úlapackr   ÚlinalgÚLinAlgErrorr   Ú_matfuncs_sqrtm_triur   rD   r   r   r   Ú<module>rM      s:   ðñð €ã õ %ô	�—‘×&Ñ&ô 	õ 4öVr   