+
    0in*                     r    ^ RI HtHtHtHt ^ RIHt ^ RIHt ^RI	H
t
 R.tRRRR	R
RRRRRRRRRR/R lltR# )    )innerzerosinffinfo)norm)sqrt)make_systemminresNrtolgh㈵>shiftg        maxiterMcallbackshowFcheckc               D   \        WW!4      w  rrV P                  pVP                  pRpRpV P                  ^ ,          pVf
   ^V,          p. R#OpV'       dQ   \        VR,           4       \        VRVR RVR 2,           4       \        VRVR R	VR
 2,           4       \        4        ^ p^ p^ p^ p^ p^ pV
P                  p\        V4      P                  pVf   VP                  4       pMWV
,          ,
          pV! V4      p\        VV4      pV^ 8  d   \        R4      hV^ 8X  d   V
^ 3# \        V4      pV^ 8X  d   Tp
V
^ 3# \        V4      pV	'       d   V! V4      pV! V4      p\        VV4      p\        VV4      p \        VV ,
          4      p!VV,           VR$,          ,          p"V!V"8  d   \        R4      hV! V4      p\        VV4      p\        VV4      p \        VV ,
          4      p!VV,           VR$,          ,          p"V!V"8  d   \        R4      h^ p#Tp$^ p%^ p&Tp'Tp(Tp)^ p*^ p+^ p,\        V4      P                  p-R%p.^ p/\        VVR7      p\        VVR7      p0TpV'       d    \        4        \        4        \        R4       VV8  Ed   V^,          pRV$,          pVV,          p1V! V14      pVVV1,          ,
          pV^8  d   VV$V#,          V,          ,
          p\        V1V4      p2VV2V$,          V,          ,
          pTpTpV! V4      pT$p#\        VV4      p$V$^ 8  d   \        R4      h\        V$4      p$V+V2^,          V#^,          ,           V$^,          ,           ,          p+V^8X  d   V$V,          ^
V,          8:  d   R%pT&p3V.V%,          V/V2,          ,           p4V/V%,          V.V2,          ,
          p5V/V$,          p&V.) V$,          p%\        V5V%.4      p6V(V6,          p7\        V5V$.4      p8\        V8V4      p8V5V8,          p.V$V8,          p/V.V(,          p9V/V(,          p(RV8,          p:T0p;Tp0V1V3V;,          ,
          V4V0,          ,
          V:,          pV
V9V,          ,           p
\        V,V84      p,\        V-V84      p-V)V8,          p!V*V4V!,          ,
          p)V&) V!,          p*\        V+4      p\        V
4      pVV,          p"VV,          V,          p<VV,          V,          p=T5p>V>^ 8X  d   T"p>T(p'T'pV^ 8X  g   V^ 8X  d   \         p?MVVV,          ,          p?V^ 8X  d   \         p@M	V6V,          p@V,V-,          pV^ 8X  dY   ^V?,           pA^X@,           pBVB^8:  d   ^pXA^8:  d   ^pVV8  d   ^pVRV,          8  d   ^pV<V8  d   ^pX@V8:  d   ^pV?V8:  d   ^pRpCV^(8:  d   RpCV^
8:  d   RpCVV^
,
          8  d   RpCV^
,          ^ 8X  d   RpCV'^
V<,          8:  d   RpCV'^
V=,          8:  d   RpCVRV,          8:  d   RpCV^ 8w  d   RpCV'       di   XC'       da   VR RV
^ ,          R RV?R 2pDRX@R 2pERVR RVR RV5V,          R 2pF\        VDVE,           VF,           4       V^
,          ^ 8X  d   \        4        Ve	   V! V
4       V^ 8w  g   EK   V'       d   \        4        \        VRVR RVR 2,           4       \        VRVR RVR 2,           4       \        VR VR R!VR 2,           4       \        VR"X7R 2,           4       \        VVV^,           ,          ,           4       V^8X  d   TpGV
VG3# ^ pGV
XG3# )&a
  
Solve ``Ax = b`` with the MINimum RESidual method, for a symmetric `A`.

MINRES minimizes norm(Ax - b) for a real symmetric matrix A.  Unlike
the Conjugate Gradient method, A can be indefinite or singular.

If shift != 0 then the method solves (A - shift*I)x = b

Parameters
----------
A : {sparse array, ndarray, LinearOperator}
    The real symmetric N-by-N matrix of the linear system
    Alternatively, ``A`` can be a linear operator which can
    produce ``Ax`` using, e.g.,
    ``scipy.sparse.linalg.LinearOperator``.
b : ndarray
    Right hand side of the linear system. Has shape (N,) or (N,1).

Returns
-------
x : ndarray
    The converged solution.
info : integer
    Provides convergence information:
        0  : successful exit
        >0 : convergence to tolerance not achieved, number of iterations
        <0 : illegal input or breakdown

Other Parameters
----------------
x0 : ndarray
    Starting guess for the solution.
shift : float
    Value to apply to the system ``(A - shift * I)x = b``. Default is 0.
rtol : float
    Tolerance to achieve. The algorithm terminates when the relative
    residual is below ``rtol``.
maxiter : integer
    Maximum number of iterations.  Iteration will stop after maxiter
    steps even if the specified tolerance has not been achieved.
M : {sparse array, ndarray, LinearOperator}
    Preconditioner for A.  The preconditioner should approximate the
    inverse of A.  Effective preconditioning dramatically improves the
    rate of convergence, which implies that fewer iterations are needed
    to reach a given error tolerance.
callback : function
    User-supplied function to call after each iteration.  It is called
    as callback(xk), where xk is the current solution vector.
show : bool
    If ``True``, print out a summary and metrics related to the solution
    during iterations. Default is ``False``.
check : bool
    If ``True``, run additional input validation to check that `A` and
    `M` (if specified) are symmetric. Default is ``False``.

Examples
--------
>>> import numpy as np
>>> from scipy.sparse import csc_array
>>> from scipy.sparse.linalg import minres
>>> A = csc_array([[3, 2, 0], [1, -1, 0], [0, 5, 1]], dtype=float)
>>> A = A + A.T
>>> b = np.array([2, 4, -1], dtype=float)
>>> x, exitCode = minres(A, b)
>>> print(exitCode)            # 0 indicates successful convergence
0
>>> np.allclose(A.dot(x), b)
True

References
----------
Solution of sparse indefinite systems of linear equations,
    C. C. Paige and M. A. Saunders (1975),
    SIAM J. Numer. Anal. 12(4), pp. 617-629.
    https://web.stanford.edu/group/SOL/software/minres/

This file is a translation of the following MATLAB implementation:
    https://web.stanford.edu/group/SOL/software/minres/minres-matlab.zip

zEnter minres.   zExit  minres.   zSolution of symmetric Ax = bz
n      =  3gz     shift  =  z23.14ez
itnlim =  z     rtol   =  z11.2ezindefinite preconditionerg      ?znon-symmetric matrixznon-symmetric preconditioner)dtypezD   Itn     x(1)     Compatible    LS       norm(A)  cond(A) gbar/|A|g?FTg{Gz?6g z12.5ez10.3ez8.1ez istop   =  z               itn   =5gz Anorm   =  z12.4ez      Acond =  z rnorm   =  z      ynorm =  z Arnorm  =  )z3 beta2 = 0.  If M = I, b and x are eigenvectors    z/ beta1 = 0.  The exact solution is x0          z3 A solution to Ax = b was found, given rtol        z3 A least-squares solution was found, given rtol    z3 Reasonable accuracy achieved, given eps           z3 x has converged to an eigenvector                 z3 acond has exceeded 0.1/eps                        z3 The iteration limit was reached                   z3 A  does not define a symmetric matrix             z3 M  does not define a symmetric matrix             z3 M  does not define a pos-def preconditioner       gUUUUUU?)r	   matvecshapeprintr   r   epscopyr   
ValueErrorr   r   absmaxr   minr   )HAbx0r   r   r   r   r   r   r   xr   psolvefirstlastnmsgistopitnAnormAcondrnormynormxtyper   r1ybeta1bnormwr2stzepsaoldbbetadbarepslnqrnormphibarrhs1rhs2tnorm2gmaxgmincssnw2valfaoldepsdeltagbarrootArnormgammaphidenomw1epsxepsrdiagtest1test2t1t2prntstr1str2str3infosH   &&&$$$$$$$                                                              `/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/sparse/linalg/_isolve/minres.pyr
   r
   
   sM   d Q2)JA!XXFXXFED	
Aa%
CC e445e
1R&f~FFGe
72,od5\JJKE
CEEEEGGE
,

C 
zVVX1Wr
A"aLEqy455	!1vGEz1vKE 1IAY!AJ!BKAJC3>)t8344 AY!AJ"RLAJC3>)t8;<< DDDEFFDDFD<D	B	
BauA	q	B	BTU
-qHaC1I	M!8T$YN"AQqzdB2JR{!8344Dz$'D!G#dAg--!8EzRV# T	BI%Dy29$T	td{T4L!$ dD\"E3E\E\6kf E	]U2X%.AI 445LeAg~wqy VQs{u}s"u}t#19DA:!EU5[)EA:E5LE T	
 A:UBUBQwQwg~Cu} }} 7D"9D'"*D8q=DRWDRWDDHDA:DD"XQqtEl!E%=9DuUm$DuTl!E$<qeD0ABD$+$%Rx1}QKA:d|E":-CC8LLMd|E%=e}MMNd|E%=e}MMNd|F5>223dSq\!"z d8O d8O    )N)numpyr   r   r   r   numpy.linalgr   mathr   utilsr	   __all__r
    rb   ra   <module>ri      s]    * *   *j$ jc j4 jj j',j49jrb   