scipy.linalg.lapack.sgetrs#

scipy.linalg.lapack.sgetrs(lu, piv, b, trans=0, overwrite_b=0) = <flapack function sgetrs>#

Solve a system already factorized by getrf (LAPACK sgetrs).

Parameters:
lundarray

Combined L and U factors, as returned by getrf.

pivndarray

Pivot indices from getrf, 0-based.

bndarray

Right-hand side(s) of shape (n, nrhs).

transint, optional

System to solve: 0 for a @ x = b, 1 for a.T @ x = b, 2 for a.conj().T @ x = b. Default is 0.

overwrite_bint, optional

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

Returns:
xndarray

Solution of the system.

infoint

0 on success; if negative, the -info-th argument had an illegal value.