scipy.linalg.lapack.strtrs#

scipy.linalg.lapack.strtrs(a, b, lower=0, trans=0, unitdiag=0, lda=a.shape[0], overwrite_b=0) = <flapack function strtrs>#

Solve a triangular system (LAPACK strtrs).

Parameters:
andarray

Triangular matrix; only the triangle named by lower is read.

bndarray

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

lowerint, optional

If nonzero, a is lower triangular; otherwise upper. Default is 0.

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.

unitdiagint, optional

If nonzero, the matrix is treated as having a unit diagonal and the stored diagonal is not referenced. Default is 0.

ldaint, optional

Leading dimension of a. It must equal a.shape[0]; the argument exists only because the .pyf exposed it. Default is a.shape[0].

overwrite_bint, optional

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

Returns:
xndarray

Solution of the system, overwriting b.

infoint

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