bundles / scipy latest / scipy / linalg / _flapack / strtrs
lapack_function
scipy.linalg._flapack:strtrs
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Summary
Solve a triangular system (LAPACK strtrs).
Parameters
a: ndarrayTriangular matrix; only the triangle named by lower is read.
b: ndarrayRight-hand side(s) of shape
(n, nrhs).lower: int, optionalIf nonzero, a is lower triangular; otherwise upper. Default is 0.
trans: int, optionalSystem to solve: 0 for
a @ x = b, 1 fora.T @ x = b, 2 fora.conj().T @ x = b. Default is 0.unitdiag: int, optionalIf nonzero, the matrix is treated as having a unit diagonal and the stored diagonal is not referenced. Default is 0.
lda: int, optionalLeading dimension of a. It must equal
a.shape[0]; the argument exists only because the.pyfexposed it. Default isa.shape[0].overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
x: ndarraySolution of the system, overwriting b.
info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.strtrs