lu_factor#

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

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

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

Return type:

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

Returns:

ret – A named tuple (LU, pivots).