This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / sgetrf

lapack_function

scipy.linalg._flapack:sgetrf

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so

Signature

def sgetrf(a, overwrite_a = 0)

Summary

Compute the LU factorization a = p @ l @ u with partial pivoting (LAPACK sgetrf).

Parameters

a : ndarray

Matrix of shape (m, n).

overwrite_a : int, optional

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

Returns

lu : ndarray

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

piv : ndarray

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

info : int

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.

Aliases

  • scipy.linalg._flapack.sgetrf