scipy.linalg.lapack.sgetri#
- scipy.linalg.lapack.sgetri(lu, piv, lwork=3 * n, overwrite_lu=0) = <flapack function sgetri>#
Invert a matrix from its
getrffactorization (LAPACKsgetri).- Parameters:
- lundarray
Combined
LandUfactors, as returned bygetrf.- pivndarray
Pivot indices from
getrf, 0-based.- lworkint, optional
Size of the workspace; must be at least
n. Default is3 * n. Usegetri_lworkfor the optimal value.- overwrite_luint, optional
If nonzero, lu may be overwritten in place. Default is 0.
- Returns:
- inv_andarray
Inverse of the matrix lu was factorized from.
- 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 matrix is singular.