ivy.lu_factor(A, /, *, pivot=True, out=None)[source]#
  • A (Union[Array, NativeArray]) – tensor of shape (*, m, n) where * is zero or more batch dimensions.

  • pivot (bool) – Whether to compute the LU decomposition with partial pivoting, or the regular LU (default: True) decomposition. pivot = False not supported on CPU. Default: True.

  • out (Optional[Union[Array, NativeArray]]) – tuple of two tensors to write the output to. Ignored if None. Default: None. (default: None)

Return type:

Tuple[Union[Array, NativeArray], Union[Array, NativeArray]]


ret – A named tuple (LU, pivots).