scipy.linalg.lapack.cgbtrs#

scipy.linalg.lapack.cgbtrs(ab, kl, ku, b, ipiv, trans=0, n=shape(ab, 1), ldab=shape(ab, 0), ldb=shape(b, 0), overwrite_b=0) = <flapack function cgbtrs>#

Solve a banded system using the factorization from gbtrf (LAPACK cgbtrs).

Parameters:
abndarray

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

klint

Number of subdiagonals.

kuint

Number of superdiagonals.

bndarray

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

ipivndarray

Pivot indices from gbtrf, 0-based.

transint, optional

System to solve: 0 for a @ x = b, 1 for a.T @ x = b, 2 for a.conj().T @ x = b. Default is 0.

nint, optional

Order of the system; must equal shape(ab, 1).

ldabint, optional

Leading dimension of ab; must equal shape(ab, 0).

ldbint, optional

Leading dimension of b; must equal shape(b, 0).

overwrite_bint, optional

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

Returns:
xndarray

Solution of the system.

infoint

0 on success; if negative, the -info-th argument had an illegal value.