bundles / scipy latest / scipy / linalg / _flapack / zgesvx
lapack_function
scipy.linalg._flapack:zgesvx
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def zgesvx(a, b, fact = E, trans = N, af = None, ipiv = None, equed = B, r = None, c = None, overwrite_a = 0, overwrite_b = 0)Summary
Solve a @ x = b with equilibration, condition estimation and error bounds (LAPACK zgesvx).
Parameters
a: ndarraySquare matrix of shape
(n, n).b: ndarrayRight-hand side(s) of shape
(n, nrhs).fact: str, optional'E'to equilibrate then factorize,'N'to factorize as given,'F'to reuse theaf,ipiv,equed,randcsupplied. Default is'E'.trans: str, optional'N','T'or'C'for the system, its transpose, or its conjugate transpose. Default is'N'.af: ndarray, optionalFactorization to reuse when
fact='F'; otherwise it is computed.ipiv: ndarray, optionalPivot indices to reuse when
fact='F', 0-based; otherwise computed.equed: str, optionalEquilibration already applied when
fact='F':'N','R','C'or'B'. Otherwise it is an output. Default is'B'.r: ndarray, optionalRow scale factors, used when
fact='F'andequedis'R'or'B'.c: ndarray, optionalColumn scale factors, used when
fact='F'andequedis'C'or'B'.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
as_: ndarraya, equilibrated ifequedis notb'N'.lu: ndarrayLU factorization of the equilibrated matrix.
piv: ndarrayPivot indices, 0-based: row
iwas interchanged with rowpiv[i].equed: bytesEquilibration actually applied:
b'N',b'R',b'C'orb'B'.rs: ndarrayRow scale factors.
cs: ndarrayColumn scale factors.
bs: ndarrayb, scaled to match the equilibrated system.x: ndarraySolution of the system.
rcond: floatEstimate of the reciprocal condition number of the equilibrated matrix.
ferr: ndarrayEstimated forward error bound for each solution vector.
berr: ndarrayComponentwise relative backward error of each solution vector.
info: int0 on success; if negative, the
-info-th argument had an illegal value; if0 < info <= n,u[info-1, info-1]is exactly zero; ifinfo = n+1, the matrix is singular to working precision and x may be inaccurate.
Aliases
scipy.linalg._flapack.zgesvx