scipy.linalg.lapack.sgetrf#
- scipy.linalg.lapack.sgetrf(a, overwrite_a=0) = <flapack function sgetrf>#
Compute the LU factorization
a = p @ l @ uwith partial pivoting (LAPACKsgetrf).- Parameters:
- andarray
Matrix of shape
(m, n).- overwrite_aint, optional
If nonzero, a may be overwritten in place. Default is 0.
- Returns:
- lundarray
Combined
LandUfactors; the unit diagonal ofLis not stored.- pivndarray
Pivot indices, 0-based: row
iwas interchanged with rowpiv[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.