scipy.linalg.lapack.sgetrf#

scipy.linalg.lapack.sgetrf(a, overwrite_a=0) = <flapack function sgetrf>#

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

Parameters:
andarray

Matrix of shape (m, n).

overwrite_aint, optional

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

Returns:
lundarray

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

pivndarray

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

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.