scipy.linalg.lapack.zgbsv#

scipy.linalg.lapack.zgbsv(kl, ku, ab, b, overwrite_ab=0, overwrite_b=0) = <flapack function zgbsv>#

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

Parameters:
klint

Number of subdiagonals.

kuint

Number of superdiagonals.

abndarray

Band storage of shape (2 * kl + ku + 1, n): a[i, j] is held at ab[ku + i - j, j].

bndarray

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

overwrite_abint, optional

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

overwrite_bint, optional

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

Returns:
lubndarray

Combined L and U factors in band storage.

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.