bundles / scipy latest / scipy / linalg / _flapack / sgetrs
lapack_function
scipy.linalg._flapack:sgetrs
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def sgetrs(lu, piv, b, trans = 0, overwrite_b = 0)Summary
Solve a system already factorized by getrf (LAPACK sgetrs).
Parameters
lu: ndarrayCombined
LandUfactors, as returned bygetrf.piv: ndarrayPivot indices from
getrf, 0-based.b: ndarrayRight-hand side(s) of shape
(n, nrhs).trans: int, optionalSystem to solve: 0 for
a @ x = b, 1 fora.T @ x = b, 2 fora.conj().T @ x = b. Default is 0.overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
x: ndarraySolution of the system.
info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.sgetrs