scipy.linalg.lapack.cgesv#

scipy.linalg.lapack.cgesv(a, b, overwrite_a=0, overwrite_b=0) = <flapack function cgesv>#

Solve a @ x = b by LU factorization with partial pivoting (LAPACK cgesv).

Parameters:
andarray

Square matrix of shape (n, n).

bndarray

Right-hand side(s) of shape (n, nrhs).

overwrite_aint, optional

If nonzero, a may be overwritten in place. Default is 0.

overwrite_bint, optional

If nonzero, b may be overwritten in place. Default is 0.

Returns:
lundarray

Combined L and U factors; the unit diagonal of L is not stored.

pivndarray

Pivot indices, 0-based: row i was interchanged with row piv[i].

xndarray

Solution of the system.

infoint

0 on success; if negative, the -info-th argument had an illegal value; if positive, u[info-1, info-1] is exactly zero and the factor is singular.