jax.lax.linalg.triangular_solve — JAX documentation (original) (raw)

Contents

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_side is True or

\[X . \mathit{op}(A) = B\]

if left_side is False.

A must be a lower or upper triangular square matrix, and where\(\mathit{op}(A)\) may either transpose \(A\) if transpose_ais True and/or take its complex conjugate if conjugate_a is True.

Parameters:

Returns:

A batch of matrices the same shape and dtype as b.

Return type:

Array