Warning
This page was created from a pull request.
jax.lax.linalg.triangular_solveΒΆ
-
jax.lax.linalg.triangular_solve(a, b, left_side=False, lower=False, transpose_a=False, conjugate_a=False, unit_diagonal=False)[source]ΒΆ Triangular solve.
Solves either the matrix equation
\[\mathit{op}(A) . X = B\]if
left_sideisTrueor\[X . \mathit{op}(A) = B\]if
left_sideisFalse.Amust be a lower or upper triangular square matrix, and where \(\mathit{op}(A)\) may either transpose \(A\) iftranspose_aisTrueand/or take its complex conjugate ifconjugate_aisTrue.- Parameters
a β A batch of matrices with shape
[..., m, m].b β A batch of matrices with shape
[..., m, n]ifleft_sideisTrueor shape[..., n, m]otherwise.left_side (
bool) β describes which of the two matrix equations to solve; see above.lower (
bool) β describes which triangle ofashould be used. The other triangle is ignored.transpose_a (
bool) β ifTrue, the value ofais transposed.conjugate_a (
bool) β ifTrue, the complex conjugate ofais used in the solve. Has no effect ifais real.unit_diagonal (
bool) β ifTrue, the diagonal ofais assumed to be unit (all 1s) and not accessed.
- Returns
A batch of matrices the same shape and dtype as
b.