bundles / scipy latest / scipy / linalg / _flapack / sgbsv
lapack_function
scipy.linalg._flapack:sgbsv
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def sgbsv(kl, ku, ab, b, overwrite_ab = 0, overwrite_b = 0)Summary
Solve a @ x = b for a banded a by LU factorization with partial pivoting (LAPACK sgbsv).
Parameters
kl: intNumber of subdiagonals.
ku: intNumber of superdiagonals.
ab: ndarrayBand storage of shape
(2 * kl + ku + 1, n):a[i, j]is held atab[ku + i - j, j].b: ndarrayRight-hand side(s) of shape
(n, nrhs).overwrite_ab: int, optionalIf nonzero,
abmay be overwritten in place. Default is 0.overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
lub: ndarrayCombined
LandUfactors in band storage.piv: ndarrayPivot indices, 0-based: row
iwas interchanged with rowpiv[i].x: ndarraySolution of the system.
info: int0 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.
Aliases
scipy.linalg._flapack.sgbsv