jax.scipy.linalg.lu_factor
Warning
This page was created from a pull request (#9655).
jax.scipy.linalg.lu_factorΒΆ
- jax.scipy.linalg.lu_factor(a, overwrite_a=False, check_finite=True)[source]ΒΆ
Compute pivoted LU decomposition of a matrix.
LAX-backend implementation of
lu_factor()
.Original docstring below.
The decomposition is:
A = P L U
where P is a permutation matrix, L lower triangular with unit diagonal elements, and U upper triangular.
- Parameters
a ((M, M) array_like) β Matrix to decompose
overwrite_a (bool, optional) β Whether to overwrite data in A (may increase performance)
check_finite (bool, optional) β Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.
- Returns
lu ((N, N) ndarray) β Matrix containing U in its upper triangle, and L in its lower triangle. The unit diagonal elements of L are not stored.
piv ((N,) ndarray) β Pivot indices representing the permutation matrix P: row i of matrix was interchanged with row piv[i].