scipy.linalg.lapack.zgetri#

scipy.linalg.lapack.zgetri(lu, piv, lwork=3 * n, overwrite_lu=0) = <flapack function zgetri>#

Invert a matrix from its getrf factorization (LAPACK zgetri).

Parameters:
lundarray

Combined L and U factors, as returned by getrf.

pivndarray

Pivot indices from getrf, 0-based.

lworkint, optional

Size of the workspace; must be at least n. Default is 3 * n. Use getri_lwork for 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.