scipy.linalg.lapack.sgbtrf#

scipy.linalg.lapack.sgbtrf(ab, kl, ku, m=shape(ab, 1), n=shape(ab, 1), ldab=shape(ab, 0), overwrite_ab=0) = <flapack function sgbtrf>#

Compute the LU factorization of a banded matrix with partial pivoting (LAPACK sgbtrf).

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.

mint, optional

Number of rows to factor. Default is shape(ab, 1), a square matrix; a smaller value factors the leading m rows.

nint, optional

Number of columns; must equal shape(ab, 1).

ldabint, optional

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

overwrite_abint, optional

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

Returns:
lundarray

Combined L and U factors in band storage.

ipivndarray

Pivot indices, 0-based, length min(m, n).

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.