scipy.linalg.lapack.sgesc2#

scipy.linalg.lapack.sgesc2(lu, rhs, ipiv, jpiv, overwrite_rhs=0) = <flapack function sgesc2>#

Solve a system factorized by getc2, scaling to avoid overflow (LAPACK sgesc2).

Parameters:
lundarray

Combined L and U factors, as returned by getrf.

rhsndarray

Right-hand side vector of length n.

ipivndarray

Row pivot indices from getc2, 0-based.

jpivndarray

Column pivot indices from getc2, 0-based.

overwrite_rhsint, optional

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

Returns:
xndarray

Solution, scaled by scale to avoid overflow.

scalefloat

Scale factor applied to the right-hand side, 0 <= scale <= 1.